From eb604bc60bcc5cd94328de725ac357e728eae624 Mon Sep 17 00:00:00 2001 From: David Faure Date: Sun, 23 Feb 2014 12:11:12 +0100 Subject: Add sharedConfig() accessor, to avoid manipulating a raw KConfig * as returned by config(). This is useful when using kconfigxt and some other code to read from the same config file (e.g. KColorScheme::contrastF(config)) - no need to call KSharedConfig::openConfig twice, just grab the KSharedConfig from the generated class. REVIEW: 115960 --- src/core/kcoreconfigskeleton.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/core/kcoreconfigskeleton.h') diff --git a/src/core/kcoreconfigskeleton.h b/src/core/kcoreconfigskeleton.h index 9cd07994..a2b828a4 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. */ -- cgit v1.2.1