From 3d771972612e2a9dbabec719db027c7abaa8a1a3 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 19 Oct 2021 03:39:44 +0200 Subject: options: add trace to valueChanged() --- options/base-value.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'options/base-value.hpp') 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>(&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 void store_(const t& datum) { -- cgit v1.2.3