summaryrefslogtreecommitdiffstats
path: root/core/settings
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-07-18 20:58:13 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-25 08:35:04 -0700
commit7f4123d0d1de12dd262bfa29a929115bdd0f67a1 (patch)
treef06f7b48481a9569afbcfa9d02d8e1d3b11c8584 /core/settings
parentf1648d297b174024bf772cbd6b482185532e0812 (diff)
downloadsubsurface-7f4123d0d1de12dd262bfa29a929115bdd0f67a1.tar.gz
core: isolate qPrefPrivate to qPref* classes
Make functions in qPrefPrivate private and add qPref* as friends Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'core/settings')
-rw-r--r--core/settings/qPrefPrivate.h7
1 files changed, 6 insertions, 1 deletions
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<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);
};