diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/kconfigwatcher.cpp | 5 | ||||
-rw-r--r-- | src/core/kconfigwatcher.h | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/core/kconfigwatcher.cpp b/src/core/kconfigwatcher.cpp index 4d4d1355..c4a877c5 100644 --- a/src/core/kconfigwatcher.cpp +++ b/src/core/kconfigwatcher.cpp @@ -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 diff --git a/src/core/kconfigwatcher.h b/src/core/kconfigwatcher.h index 00c0fab5..4d44c752 100644 --- a/src/core/kconfigwatcher.h +++ b/src/core/kconfigwatcher.h @@ -51,6 +51,12 @@ public: ~KConfigWatcher() override; + /** + * Returns the config being watched + * @since 5.65 + */ + KSharedConfig::Ptr config() const; + Q_SIGNALS: /** * Emitted when a config group has changed |