summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-01-30 14:18:10 +0100
committerSlávek Banko <slavek.banko@axis.cz>2020-01-30 14:18:10 +0100
commitf29aa92d38e9e1f353ed48f7952150437db8c890 (patch)
tree6a989d662e78ed1d3c792f3ec3c1cd33442416cd
parentde79e754fa8118d34ea804d6b4fb7056b65487fd (diff)
downloadtdelibs-f29aa92d.tar.gz
tdelibs-f29aa92d.zip
Fix private API compatibility in TDEGlobalSettings.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--tdecore/tdeglobalsettings.cpp7
-rw-r--r--tdecore/tdeglobalsettings.h6
2 files changed, 13 insertions, 0 deletions
diff --git a/tdecore/tdeglobalsettings.cpp b/tdecore/tdeglobalsettings.cpp
index 241583caf..4941a9eda 100644
--- a/tdecore/tdeglobalsettings.cpp
+++ b/tdecore/tdeglobalsettings.cpp
@@ -590,6 +590,13 @@ TQFont TDEGlobalSettings::largeFont(const TQString &text)
return *_largeFont;
}
+void TDEGlobalSettings::initStatic()
+{
+ // The method is primarily to ensure backward compatibility of the API.
+ // Don't put anything else here.
+ initPaths();
+}
+
void TDEGlobalSettings::initPaths()
{
if (s_desktopPath)
diff --git a/tdecore/tdeglobalsettings.h b/tdecore/tdeglobalsettings.h
index a6208d0ec..74b0d77a8 100644
--- a/tdecore/tdeglobalsettings.h
+++ b/tdecore/tdeglobalsettings.h
@@ -570,6 +570,12 @@ class TDECORE_EXPORT TDEGlobalSettings
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();