core/settings: make qPref* constructors private

Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
jan Iversen 2018-09-14 12:25:18 +02:00 committed by Dirk Hohndel
parent 6e846eb4c0
commit 653a2baf11
26 changed files with 26 additions and 65 deletions

View file

@ -36,7 +36,6 @@ class qPrefDiveComputer : public QObject {
Q_PROPERTY(QString vendor4 READ vendor4 WRITE set_vendor4 NOTIFY vendor4Changed)
public:
qPrefDiveComputer(QObject *parent = NULL);
static qPrefDiveComputer *instance();
// Load/Sync local settings (disk) and struct preference
@ -101,6 +100,8 @@ signals:
void vendor4Changed(const QString &vendor);
private:
qPrefDiveComputer() {}
// functions to load/sync variable with disk
static void disk_device(bool doSync);