From 5a8f96d3758ef717231e756c432e0d1ee30aebad Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 11 Jun 2016 09:21:01 +0200 Subject: compat/options: untested float->double signal support --- opentrack-compat/options.hpp | 6 ++++++ 1 file changed, 6 insertions(+) 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(datum)); } + void store(float datum) + { + store(double(datum)); + } + public slots: DEFINE_SLOT(double) DEFINE_SLOT(int) -- cgit v1.2.3