From 2508a1865bf393335b1bf674a8e1e7995a313b53 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 10 Dec 2017 14:08:22 +0100 Subject: options: rename template --- options/tie.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'options/tie.hpp') 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& v, QComboBox* cb) }); }, v.DIRECT_CONNTYPE); - base_value::connect(&v, base_value::signal_fun(), + base_value::connect(&v, base_value::value_changed(), cb, [cb](int x) { run_in_thread_sync(cb, [&]() { cb->setCurrentIndex(cb->findData(x)); }); }, @@ -60,7 +60,7 @@ void tie_setting(value& v, QLabel* lb, F&& fun) auto closure = [=](cv_qualified x) { lb->setText(fun(x)); }; closure(v()); - base_value::connect(&v, base_value::signal_fun(), + base_value::connect(&v, base_value::value_changed(), lb, closure, v.SAFE_CONNTYPE); } @@ -73,7 +73,7 @@ void tie_setting(value& v, QObject* obj, F&& fun) fun(v()); - base_value::connect(&v, base_value::signal_fun(), + base_value::connect(&v, base_value::value_changed(), obj, fun, v.DIRECT_CONNTYPE); } -- cgit v1.2.3