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

@ -20,7 +20,6 @@ class qPrefUnits : public QObject {
Q_PROPERTY(units::WEIGHT weight READ weight WRITE set_weight NOTIFY weightChanged);
public:
qPrefUnits(QObject *parent = NULL);
static qPrefUnits *instance();
// Load/Sync local settings (disk) and struct preference
@ -65,6 +64,8 @@ signals:
void weightChanged(int value);
private:
qPrefUnits() {}
static void disk_coordinates_traditional(bool doSync);
static void disk_duration_units(bool doSync);
static void disk_length(bool doSync);