summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/options.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/facetracknoir/options.h b/facetracknoir/options.h
index 1305bd0a..e77988c7 100644
--- a/facetracknoir/options.h
+++ b/facetracknoir/options.h
@@ -23,6 +23,7 @@
#include <QSpinBox>
#include <QSlider>
#include <QLineEdit>
+#include <QLabel>
#include <QCoreApplication>
#ifdef __GNUC__
@@ -297,6 +298,13 @@ namespace options {
le->setText(v);
}
+ template<>
+ inline void tie_setting(value<QString>& v, QLabel* lb)
+ {
+ base_value::connect(&v, SIGNAL(valueChanged(QString)), lb, SLOT(setText(QString)), v.CONNTYPE);
+ lb->setText(v);
+ }
+
inline pbundle bundle(const QString& group) {
return std::make_shared<impl_bundle>(group);
}