diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-10-19 03:39:44 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-10-19 03:57:28 +0200 |
commit | 3d771972612e2a9dbabec719db027c7abaa8a1a3 (patch) | |
tree | f77888ba9b43def7f2ebf0a58c69a2db04c84ce0 /options/value.hpp | |
parent | 634403a68dd710d68abcd2e063f9660e9b3e30ea (diff) |
options: add trace to valueChanged()
Diffstat (limited to 'options/value.hpp')
-rw-r--r-- | options/value.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/options/value.hpp b/options/value.hpp index 92e2878f..10903b19 100644 --- a/options/value.hpp +++ b/options/value.hpp @@ -92,10 +92,15 @@ public: return traits::qvariant_from_value(def); } + never_inline void notify() const override { if (!is_null()) + { + maybe_trace(true); emit valueChanged(traits::storage_from_value(get())); + maybe_trace(false); + } } auto& operator=(t&& datum) noexcept |