summaryrefslogtreecommitdiffhomepage
path: root/options/tie.cpp
diff options
context:
space:
mode:
authorStéphane Lenclud <github@lenclud.com>2019-04-28 00:03:24 +0200
committerStéphane Lenclud <github@lenclud.com>2019-04-28 00:03:24 +0200
commit3e56f47a9cef709d4a099a0ac6ff43e361fe4a43 (patch)
treea8968cb73e7568902c83bb2275982ac23261a2f7 /options/tie.cpp
parent518becf76bb5313949c76e9fa02d1ada2c25242d (diff)
Easy Tracker: UI rework for custom model with three, four or five vertices.
More settings can be changed live without have to restart the tracker. Fixing a few deadlock issues.
Diffstat (limited to 'options/tie.cpp')
-rw-r--r--options/tie.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/options/tie.cpp b/options/tie.cpp
index 671a72c2..8220854d 100644
--- a/options/tie.cpp
+++ b/options/tie.cpp
@@ -72,6 +72,13 @@ void tie_setting(value<QVariant>& v, QComboBox* cb)
// XXX TODO need variant with setEnabled based on lambda retval -- sh 20170524
+void tie_setting(value<bool>& v, QRadioButton* cb)
+{
+ cb->setChecked(v);
+ value_::connect(cb, SIGNAL(toggled(bool)), &v, SLOT(setValue(bool)), v.DIRECT_CONNTYPE);
+ value_::connect(&v, SIGNAL(valueChanged(bool)), cb, SLOT(setChecked(bool)), v.SAFE_CONNTYPE);
+}
+
void tie_setting(value<bool>& v, QCheckBox* cb)
{
cb->setChecked(v);