summaryrefslogtreecommitdiffhomepage
path: root/options
diff options
context:
space:
mode:
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 {