diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-01-30 14:18:10 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-02-03 17:53:35 +0100 |
commit | 119bb1250355503e9b7f71b294cc502e7a9d6d95 (patch) | |
tree | b0fb16c82b54c2886de820cf3a904a1ccaf4c762 /kdecore | |
parent | b3a875f92e4c58d8140321321aa4402b06c3f615 (diff) | |
download | tdelibs-119bb1250355503e9b7f71b294cc502e7a9d6d95.tar.gz tdelibs-119bb1250355503e9b7f71b294cc502e7a9d6d95.zip |
Fix private API compatibility in TDEGlobalSettings.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit f29aa92d38e9e1f353ed48f7952150437db8c890)
Diffstat (limited to 'kdecore')
-rw-r--r-- | kdecore/kglobalsettings.cpp | 7 | ||||
-rw-r--r-- | kdecore/kglobalsettings.h | 6 |
2 files changed, 13 insertions, 0 deletions
diff --git a/kdecore/kglobalsettings.cpp b/kdecore/kglobalsettings.cpp index da153aeb7..6240a6e56 100644 --- a/kdecore/kglobalsettings.cpp +++ b/kdecore/kglobalsettings.cpp @@ -590,6 +590,13 @@ TQFont KGlobalSettings::largeFont(const TQString &text) return *_largeFont; } +void KGlobalSettings::initStatic() +{ + // The method is primarily to ensure backward compatibility of the API. + // Don't put anything else here. + initPaths(); +} + void KGlobalSettings::initPaths() { if (s_desktopPath) diff --git a/kdecore/kglobalsettings.h b/kdecore/kglobalsettings.h index 546fac2b5..73bdd5b97 100644 --- a/kdecore/kglobalsettings.h +++ b/kdecore/kglobalsettings.h @@ -570,6 +570,12 @@ class KDECORE_EXPORT KGlobalSettings private: /** + * global initialization - should only include paths initialization + * + * The method is primarily to ensure backward compatibility of the API. + */ + static void initStatic(); + /** * reads in all paths from kdeglobals */ static void initPaths(); |