core: isolate qPrefPrivate to qPref* classes

Make functions in qPrefPrivate private and add
qPref* as friends

Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
jan Iversen 2018-07-18 20:58:13 +02:00 committed by Dirk Hohndel
parent f1648d297b
commit 7f4123d0d1

View file

@ -3,6 +3,7 @@
#define QPREFPRIVATE_H
// Header used by all qPref<class> implementations to avoid duplicating code
#include "qPref.h"
#include <QSettings>
#include <QVariant>
#include <QObject>
@ -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);
};