Commit 7ab8275b authored by David Edmundson's avatar David Edmundson

Expose getter to KConfigWatcher's config

It can help save users having to member variables for the config and the

Reviewers: broulik

Reviewed By: broulik

Subscribers: broulik, kde-frameworks-devel

Tags: #frameworks

Differential Revision:
parent 89fb70b5
......@@ -92,6 +92,11 @@ KConfigWatcher::KConfigWatcher(const KSharedConfig::Ptr &config):
KConfigWatcher::~KConfigWatcher() = default;
KSharedConfig::Ptr KConfigWatcher::config() const
return d->m_config;
void KConfigWatcher::onConfigChangeNotification(const QHash<QString, QByteArrayList> &changes)
//should we ever need it we can determine the file changed with QDbusContext::message().path(), but it doesn't seem too useful
......@@ -51,6 +51,12 @@ public:
~KConfigWatcher() override;
* Returns the config being watched
* @since 5.65
KSharedConfig::Ptr config() const;
* Emitted when a config group has changed
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment