diff --git a/src/core/kcoreconfigskeleton.cpp b/src/core/kcoreconfigskeleton.cpp index 98d9cdc..9c5fb4a 100644 --- a/src/core/kcoreconfigskeleton.cpp +++ b/src/core/kcoreconfigskeleton.cpp @@ -1022,6 +1022,11 @@ const KConfig *KCoreConfigSkeleton::config() const return d->mConfig.data(); } +KSharedConfig::Ptr KCoreConfigSkeleton::sharedConfig() const +{ + return d->mConfig; +} + void KCoreConfigSkeleton::setSharedConfig(KSharedConfig::Ptr pConfig) { d->mConfig = pConfig; diff --git a/src/core/kcoreconfigskeleton.h b/src/core/kcoreconfigskeleton.h index 9cd0799..a2b828a 100644 --- a/src/core/kcoreconfigskeleton.h +++ b/src/core/kcoreconfigskeleton.h @@ -1338,6 +1338,12 @@ public: */ const KConfig *config() const; + /** + * Return the @ref KConfig object used for reading and writing the settings. + * @since 5.0 + */ + KSharedConfig::Ptr sharedConfig() const; + /** * Set the @ref KSharedConfig object used for reading and writing the settings. */