summaryrefslogtreecommitdiffhomepage
path: root/options
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-21 17:37:27 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-23 00:05:15 +0200
commit550390d6d2f4e7ea21f6fa407e3b054a8ac12fd4 (patch)
tree7d30227666ee4675fd9f26f2a9d82a033ab16467 /options
parent6e943c80dabdeb3c43e0a6b635c24defbc31912f (diff)
options/bundle: emit changed() whenever any part of a bundle changes
Diffstat (limited to 'options')
-rw-r--r--options/bundle.cpp3
-rw-r--r--options/bundle.hpp1
2 files changed, 4 insertions, 0 deletions
diff --git a/options/bundle.cpp b/options/bundle.cpp
index 83981ddf..cf75097c 100644
--- a/options/bundle.cpp
+++ b/options/bundle.cpp
@@ -28,6 +28,7 @@ void bundle::reload()
connector::notify_all_values();
emit reloading();
}
+ emit changed();
}
void bundle::store_kv(const QString& name, const QVariant& datum)
@@ -38,6 +39,8 @@ void bundle::store_kv(const QString& name, const QVariant& datum)
if (group_name.size())
connector::notify_values(name);
+
+ emit changed();
}
bool bundle::contains(const QString &name) const
diff --git a/options/bundle.hpp b/options/bundle.hpp
index a948ac44..f83e6800 100644
--- a/options/bundle.hpp
+++ b/options/bundle.hpp
@@ -40,6 +40,7 @@ private:
signals:
void reloading();
void saving() const;
+ void changed() const;
public:
bundle(const QString& group_name);
~bundle() override {}