summaryrefslogtreecommitdiffhomepage
path: root/options/base-value.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-10-19 03:39:44 +0200
committerStanislaw Halik <sthalik@misaki.pl>2021-10-19 03:57:28 +0200
commit3d771972612e2a9dbabec719db027c7abaa8a1a3 (patch)
treef77888ba9b43def7f2ebf0a58c69a2db04c84ce0 /options/base-value.hpp
parent634403a68dd710d68abcd2e063f9660e9b3e30ea (diff)
options: add trace to valueChanged()
Diffstat (limited to 'options/base-value.hpp')
-rw-r--r--options/base-value.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/options/base-value.hpp b/options/base-value.hpp
index 722107a4..9b2ebe53 100644
--- a/options/base-value.hpp
+++ b/options/base-value.hpp
@@ -40,6 +40,8 @@ public:
return static_cast<signal_sig<t>>(&value_::valueChanged);
}
+ static const bool TRACE_NOTIFY;
+
signals:
OTR_OPTIONS_SIGNAL(double);
OTR_OPTIONS_SIGNAL(float);
@@ -65,6 +67,8 @@ protected:
virtual void store_variant(QVariant&&) noexcept = 0;
virtual void store_variant(const QVariant&) noexcept = 0;
+ void maybe_trace(bool x) const;
+
template<typename t>
void store_(const t& datum)
{