summaryrefslogtreecommitdiffhomepage
path: root/options/tie.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-18 17:01:20 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-18 17:05:12 +0200
commit132a1925340bcd75a88f831a3487044736dccb4a (patch)
treed741f42c413631a6923b7b674b784d3648ff5f94 /options/tie.hpp
parentac3878aaada9886de097aee7b0041468590f50d1 (diff)
options: add base_value signal const
Diffstat (limited to 'options/tie.hpp')
-rw-r--r--options/tie.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/options/tie.hpp b/options/tie.hpp
index 2969f8d4..1b8056a7 100644
--- a/options/tie.hpp
+++ b/options/tie.hpp
@@ -91,7 +91,7 @@ tie_setting(value<t>& v, QComboBox* cb)
fn1(v, cb, enum_cases),
v.DIRECT_CONNTYPE);
base_value::connect(&v,
- static_cast<void (base_value::*)(int)>(&base_value::valueChanged),
+ static_cast<void (base_value::*)(int) const>(&base_value::valueChanged),
cb,
fn2(v, cb, enum_cases),
v.DIRECT_CONNTYPE);
@@ -203,7 +203,7 @@ inline void tie_setting(value<slider_value>& v, QSlider* w)
},
v.DIRECT_CONNTYPE);
base_value::connect(&v,
- static_cast<void(base_value::*)(double)>(&base_value::valueChanged),
+ static_cast<void(base_value::*)(double) const>(&base_value::valueChanged),
w,
[=](double value) { w->setValue(int(round(value * q_diff) + q_min)); },
v.SAFE_CONNTYPE);