diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-18 14:53:00 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-18 17:05:13 +0200 |
commit | a18ca7764abbe24b601885ef06fcc98f0b7ed10b (patch) | |
tree | 1381ca22c6b2e68f5e43f0443435863eb3578c77 /options/bundle.cpp | |
parent | 132a1925340bcd75a88f831a3487044736dccb4a (diff) |
options: factor out connector out of bundle
Diffstat (limited to 'options/bundle.cpp')
-rw-r--r-- | options/bundle.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/options/bundle.cpp b/options/bundle.cpp index fa1a214c..a080bb77 100644 --- a/options/bundle.cpp +++ b/options/bundle.cpp @@ -1,4 +1,7 @@ #include "bundle.hpp" +#include "value.hpp" + +using options::base_value; namespace options { @@ -20,6 +23,8 @@ void bundle::reload() QMutexLocker l(&mtx); saved = group(group_name); transient = saved; + + connector::notify_all_values(); } emit reloading(); } @@ -29,6 +34,8 @@ void bundle::store_kv(const QString& name, const QVariant& datum) QMutexLocker l(&mtx); transient.put(name, datum); + + connector::notify_values(name); } bool bundle::contains(const QString &name) const |