mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
f1648d297b
commit
7f4123d0d1
1 changed files with 6 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
||||||
#define QPREFPRIVATE_H
|
#define QPREFPRIVATE_H
|
||||||
|
|
||||||
// Header used by all qPref<class> implementations to avoid duplicating code
|
// Header used by all qPref<class> implementations to avoid duplicating code
|
||||||
|
#include "qPref.h"
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <QVariant>
|
#include <QVariant>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
|
@ -13,6 +14,11 @@ class qPrefPrivate : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
friend class qPrefAnimations;
|
||||||
|
friend class qPrefCloudStorage;
|
||||||
|
friend class qPrefDisplay;
|
||||||
|
|
||||||
|
private:
|
||||||
static qPrefPrivate *instance();
|
static qPrefPrivate *instance();
|
||||||
|
|
||||||
QSettings setting;
|
QSettings setting;
|
||||||
|
@ -20,7 +26,6 @@ public:
|
||||||
// Helper functions
|
// Helper functions
|
||||||
static void copy_txt(const char **name, const QString& string);
|
static void copy_txt(const char **name, const QString& string);
|
||||||
|
|
||||||
private:
|
|
||||||
qPrefPrivate(QObject *parent = NULL);
|
qPrefPrivate(QObject *parent = NULL);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue