summaryrefslogtreecommitdiffhomepage
path: root/options/tie.cpp
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.cpp
parente6412ba2e9dc6c56664dbcf81ef299499434891a (diff)
options: rename template
Diffstat (limited to 'options/tie.cpp')
-rw-r--r--options/tie.cpp8
1 files changed, 4 insertions, 4 deletions
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<QVariant>& v, QComboBox* cb)
&v, [cb, &v](int idx) {
v = cb->itemData(idx);
}, v.DIRECT_CONNTYPE);
- base_value::connect(&v, base_value::signal_fun<QVariant>(),
+ base_value::connect(&v, base_value::value_changed<QVariant>(),
cb,
[cb, set_idx](const QVariant& var) {
run_in_thread_sync(cb, [&]() {
@@ -91,13 +91,13 @@ OTR_OPTIONS_EXPORT void tie_setting(value<QString>& 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<QString>(), le, &QLineEdit::setText, v.SAFE_CONNTYPE);
+ base_value::connect(&v, base_value::value_changed<QString>(), le, &QLineEdit::setText, v.SAFE_CONNTYPE);
}
OTR_OPTIONS_EXPORT void tie_setting(value<QString>& v, QLabel* lb)
{
lb->setText(v);
- base_value::connect(&v, base_value::signal_fun<QString>(), lb, &QLabel::setText, v.SAFE_CONNTYPE);
+ base_value::connect(&v, base_value::value_changed<QString>(), lb, &QLabel::setText, v.SAFE_CONNTYPE);
}
OTR_OPTIONS_EXPORT void tie_setting(value<int>& v, QTabWidget* t)
@@ -133,7 +133,7 @@ OTR_OPTIONS_EXPORT void tie_setting(value<slider_value>& v, QSlider* w)
v.DIRECT_CONNTYPE);
base_value::connect(&v,
- base_value::signal_fun<slider_value>(),
+ base_value::value_changed<slider_value>(),
w,
[=, &v](double) {
run_in_thread_sync(w, [=, &v]()