diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-18 17:01:20 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-18 17:05:12 +0200 |
commit | 132a1925340bcd75a88f831a3487044736dccb4a (patch) | |
tree | d741f42c413631a6923b7b674b784d3648ff5f94 /options/tie.hpp | |
parent | ac3878aaada9886de097aee7b0041468590f50d1 (diff) |
options: add base_value signal const
Diffstat (limited to 'options/tie.hpp')
-rw-r--r-- | options/tie.hpp | 4 |
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); |