summaryrefslogtreecommitdiffhomepage
path: root/options/tie.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-12-10 14:08:22 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-12-10 14:08:22 +0100
commit2508a1865bf393335b1bf674a8e1e7995a313b53 (patch)
tree83e5d62ea010a32616f984d987d12834ebde2bd3 /options/tie.hpp
parente6412ba2e9dc6c56664dbcf81ef299499434891a (diff)
options: rename template
Diffstat (limited to 'options/tie.hpp')
-rw-r--r--options/tie.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/options/tie.hpp b/options/tie.hpp
index ad38faf8..8d5fe6c5 100644
--- a/options/tie.hpp
+++ b/options/tie.hpp
@@ -47,7 +47,7 @@ tie_setting(value<t>& v, QComboBox* cb)
});
},
v.DIRECT_CONNTYPE);
- base_value::connect(&v, base_value::signal_fun<int>(),
+ base_value::connect(&v, base_value::value_changed<int>(),
cb, [cb](int x) {
run_in_thread_sync(cb, [&]() { cb->setCurrentIndex(cb->findData(x)); });
},
@@ -60,7 +60,7 @@ void tie_setting(value<t>& v, QLabel* lb, F&& fun)
auto closure = [=](cv_qualified<t> x) { lb->setText(fun(x)); };
closure(v());
- base_value::connect(&v, base_value::signal_fun<t>(),
+ base_value::connect(&v, base_value::value_changed<t>(),
lb, closure,
v.SAFE_CONNTYPE);
}
@@ -73,7 +73,7 @@ void tie_setting(value<t>& v, QObject* obj, F&& fun)
fun(v());
- base_value::connect(&v, base_value::signal_fun<t>(),
+ base_value::connect(&v, base_value::value_changed<t>(),
obj, fun,
v.DIRECT_CONNTYPE);
}