From f29aa92d38e9e1f353ed48f7952150437db8c890 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 30 Jan 2020 14:18:10 +0100 Subject: [PATCH] Fix private API compatibility in TDEGlobalSettings. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- tdecore/tdeglobalsettings.cpp | 7 +++++++ tdecore/tdeglobalsettings.h | 6 ++++++ 2 files changed, 13 insertions(+) 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 @@ -569,6 +569,12 @@ class TDECORE_EXPORT TDEGlobalSettings static int buttonLayout(); 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 */