From 3c3729711c86a621b425370fd11d4271e4208f1b Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Tue, 17 Jul 2018 15:22:51 +0200 Subject: core: remove QSettings in qPref* and use a shared variable Add qPrefPrivate class which contains one QSettings variable, delete QSettings from qPref* class definitions this secures there are only instance of QSettings (QSettings needs to be in a QObject class to work) Signed-off-by: Jan Iversen --- core/settings/qPrefDisplay.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'core/settings/qPrefDisplay.h') diff --git a/core/settings/qPrefDisplay.h b/core/settings/qPrefDisplay.h index 4a1c0ada5..cb6b872f9 100644 --- a/core/settings/qPrefDisplay.h +++ b/core/settings/qPrefDisplay.h @@ -3,7 +3,6 @@ #define QPREFDISPLAY_H #include -#include class qPrefDisplay : public QObject { Q_OBJECT @@ -44,9 +43,6 @@ signals: void theme_changed(const QString& value); private: - const QString group = QStringLiteral("Display"); - QSettings setting; - // functions to load/sync variable with disk void disk_divelist_font(bool doSync); void disk_font_size(bool doSync); -- cgit v1.2.3-70-g09d2