From 91ca7726d4af5e86a2d5d10ec56685be22b0face Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 30 Mar 2017 15:32:53 +0200 Subject: options: allow tie combobox to qvariant --- options/value.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'options/value.hpp') diff --git a/options/value.hpp b/options/value.hpp index 4904c370..48f71d47 100644 --- a/options/value.hpp +++ b/options/value.hpp @@ -55,6 +55,7 @@ signals: OPENTRACK_DEFINE_SIGNAL(const QString&); OPENTRACK_DEFINE_SIGNAL(const slider_value&); OPENTRACK_DEFINE_SIGNAL(const QPointF&); + OPENTRACK_DEFINE_SIGNAL(const QVariant&); OPENTRACK_DEFINE_SIGNAL(const QList&); OPENTRACK_DEFINE_SIGNAL(const QList&); @@ -69,6 +70,11 @@ protected: comparator cmp; std::type_index type_index; + void store(const QVariant& datum) + { + b->store_kv(self_name, datum); + } + template void store(const t& datum) { @@ -82,6 +88,7 @@ public slots: OPENTRACK_DEFINE_SLOT(const QString&) OPENTRACK_DEFINE_SLOT(const slider_value&) OPENTRACK_DEFINE_SLOT(const QPointF&) + OPENTRACK_DEFINE_SLOT(const QVariant&) OPENTRACK_DEFINE_SLOT(const QList&) OPENTRACK_DEFINE_SLOT(const QList&) -- cgit v1.2.3