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.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'options/tie.cpp') diff --git a/options/tie.cpp b/options/tie.cpp index c0552d71..9e693f5c 100644 --- a/options/tie.cpp +++ b/options/tie.cpp @@ -55,7 +55,7 @@ OTR_OPTIONS_EXPORT void tie_setting(value& v, QComboBox* cb) &v, [cb, &v](int idx) { v = cb->itemData(idx); }, v.DIRECT_CONNTYPE); - base_value::connect(&v, base_value::signal_fun(), + base_value::connect(&v, base_value::value_changed(), cb, [cb, set_idx](const QVariant& var) { run_in_thread_sync(cb, [&]() { @@ -91,13 +91,13 @@ OTR_OPTIONS_EXPORT void tie_setting(value& v, QLineEdit* le) { le->setText(v); base_value::connect(le, SIGNAL(textChanged(QString)), &v, SLOT(setValue(QString)), v.DIRECT_CONNTYPE); - base_value::connect(&v, base_value::signal_fun(), le, &QLineEdit::setText, v.SAFE_CONNTYPE); + base_value::connect(&v, base_value::value_changed(), le, &QLineEdit::setText, v.SAFE_CONNTYPE); } OTR_OPTIONS_EXPORT void tie_setting(value& v, QLabel* lb) { lb->setText(v); - base_value::connect(&v, base_value::signal_fun(), lb, &QLabel::setText, v.SAFE_CONNTYPE); + base_value::connect(&v, base_value::value_changed(), lb, &QLabel::setText, v.SAFE_CONNTYPE); } OTR_OPTIONS_EXPORT void tie_setting(value& v, QTabWidget* t) @@ -133,7 +133,7 @@ OTR_OPTIONS_EXPORT void tie_setting(value& v, QSlider* w) v.DIRECT_CONNTYPE); base_value::connect(&v, - base_value::signal_fun(), + base_value::value_changed(), w, [=, &v](double) { run_in_thread_sync(w, [=, &v]() -- cgit v1.2.3