aboutsummaryrefslogtreecommitdiff
path: root/src/core/kcoreconfigskeleton.h
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2014-03-23 22:57:45 +0100
committerDavid Faure <faure@kde.org>2014-03-23 23:00:03 +0100
commitfb451a380c088f315e60de92288326fc7fdfd394 (patch)
treebd6996b020b997506045417fa0b3b19c65586a81 /src/core/kcoreconfigskeleton.h
parent80ee4cd6aafc870909308485d6c42023fb875faa (diff)
downloadkconfig-fb451a380c088f315e60de92288326fc7fdfd394.tar.gz
kconfig-fb451a380c088f315e60de92288326fc7fdfd394.tar.bz2
Rename readConfig() to load(), to make it clear it's loading from disk.
As discussed with Matthew Dawson in review 116461.
Diffstat (limited to 'src/core/kcoreconfigskeleton.h')
-rw-r--r--src/core/kcoreconfigskeleton.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/core/kcoreconfigskeleton.h b/src/core/kcoreconfigskeleton.h
index ebfad52c..41f14289 100644
--- a/src/core/kcoreconfigskeleton.h
+++ b/src/core/kcoreconfigskeleton.h
@@ -1036,7 +1036,18 @@ public:
* registered items from the KConfig. You can overridde usrReadConfig()
* in derived classes if you have special requirements.
*/
- void readConfig(); // KDE5 TODO rename to load()
+ void load();
+
+#ifndef KCONFIGCORE_NO_DEPRECATED
+ /**
+ * @deprecated since 5.0, call load() instead (to reload from disk) or just read()
+ * if the underlying KConfig object is already up-to-date.
+ */
+ KCONFIGCORE_DEPRECATED void readConfig()
+ {
+ load();
+ }
+#endif
/**
* Read preferences from the KConfig object.