summaryrefslogtreecommitdiffhomepage
path: root/opentrack-compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-06-11 09:21:01 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-06-11 09:21:01 +0200
commit5a8f96d3758ef717231e756c432e0d1ee30aebad (patch)
treef9bd93827ee00a4bc60b049f02cfe8874097fcc7 /opentrack-compat
parent077f43d24eec5cb08e6c5d5a3f01de44fe3cba79 (diff)
compat/options: untested float->double signal support
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)