From 7f4123d0d1de12dd262bfa29a929115bdd0f67a1 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Wed, 18 Jul 2018 20:58:13 +0200 Subject: core: isolate qPrefPrivate to qPref* classes Make functions in qPrefPrivate private and add qPref* as friends Signed-off-by: Jan Iversen --- core/settings/qPrefPrivate.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/settings/qPrefPrivate.h b/core/settings/qPrefPrivate.h index 558333990..062b30277 100644 --- a/core/settings/qPrefPrivate.h +++ b/core/settings/qPrefPrivate.h @@ -3,6 +3,7 @@ #define QPREFPRIVATE_H // Header used by all qPref implementations to avoid duplicating code +#include "qPref.h" #include #include #include @@ -13,6 +14,11 @@ class qPrefPrivate : public QObject { Q_OBJECT public: + friend class qPrefAnimations; + friend class qPrefCloudStorage; + friend class qPrefDisplay; + +private: static qPrefPrivate *instance(); QSettings setting; @@ -20,7 +26,6 @@ public: // Helper functions static void copy_txt(const char **name, const QString& string); -private: qPrefPrivate(QObject *parent = NULL); }; -- cgit v1.2.3-70-g09d2