summaryrefslogtreecommitdiffhomepage
path: root/opentrack-compat
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack-compat')
-rw-r--r--opentrack-compat/options.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/opentrack-compat/options.hpp b/opentrack-compat/options.hpp
index bd01c1a7..7ad97af1 100644
--- a/opentrack-compat/options.hpp
+++ b/opentrack-compat/options.hpp
@@ -175,6 +175,7 @@ namespace options {
base_value(pbundle b, const QString& name);
signals:
DEFINE_SIGNAL(double);
+ DEFINE_SIGNAL(float);
DEFINE_SIGNAL(int);
DEFINE_SIGNAL(bool);
DEFINE_SIGNAL(QString);
@@ -189,6 +190,11 @@ namespace options {
b->store_kv(self_name, QVariant::fromValue(datum));
emit valueChanged(static_cast<t>(datum));
}
+ void store(float datum)
+ {
+ store(double(datum));
+ }
+
public slots:
DEFINE_SLOT(double)
DEFINE_SLOT(int)