diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-13 18:53:28 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-13 18:53:28 +0200 |
commit | 9da6dff1800d6b6598e6ad04465ee8b9cabb4167 (patch) | |
tree | 2f1692597748ce37d2ce147e8ed9f0c7d71d00e9 /options/base-value.cpp | |
parent | 535e81402a65fa410e98899cd1780784d2f9815a (diff) |
tracker/pt, options: fix threshold slider
It's only the tie_setting(slider_value, QSlider) that
has race-free slider updates. Needed to update the
threshold slider representation.
Remove the tie_setting(int, QSlider) overload since it
doesn't have the logic.
Add a migration.
Add base_value::notify() for use-cases like the
checkbox updating the label.
Diffstat (limited to 'options/base-value.cpp')
-rw-r--r-- | options/base-value.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/options/base-value.cpp b/options/base-value.cpp index 29f4b496..a07886bb 100644 --- a/options/base-value.cpp +++ b/options/base-value.cpp @@ -16,6 +16,11 @@ base_value::~base_value() b->on_value_destructed(self_name, this); } +void base_value::notify() const +{ + bundle_value_changed(); +} + void base_value::store(const QVariant& datum) { b->store_kv(self_name, datum); |