summaryrefslogtreecommitdiffhomepage
path: root/options
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
parentac3878aaada9886de097aee7b0041468590f50d1 (diff)
options: add base_value signal const
Diffstat (limited to 'options')
-rw-r--r--options/tie.hpp4
-rw-r--r--options/value.hpp2
2 files changed, 3 insertions, 3 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);
diff --git a/options/value.hpp b/options/value.hpp
index 4d8d69f8..d09924c5 100644
--- a/options/value.hpp
+++ b/options/value.hpp
@@ -8,7 +8,7 @@
#include <QList>
#define OPENTRACK_DEFINE_SLOT(t) void setValue(t datum) { store(datum); }
-#define OPENTRACK_DEFINE_SIGNAL(t) void valueChanged(t)
+#define OPENTRACK_DEFINE_SIGNAL(t) void valueChanged(t) const
namespace options {
namespace detail {