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 --- packaging/ios/Subsurface-mobile.pro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packaging/ios') diff --git a/packaging/ios/Subsurface-mobile.pro b/packaging/ios/Subsurface-mobile.pro index 1d0c473df..c4ce9e93e 100644 --- a/packaging/ios/Subsurface-mobile.pro +++ b/packaging/ios/Subsurface-mobile.pro @@ -80,6 +80,7 @@ SOURCES += ../../subsurface-mobile-main.cpp \ ../../core/settings/qPref.cpp \ ../../core/settings/qPrefAnimations.cpp \ ../../core/settings/qPrefDisplay.cpp \ + ../../core/settings/qPrefPrivate.cpp \ ../../core/subsurface-qt/CylinderObjectHelper.cpp \ ../../core/subsurface-qt/DiveObjectHelper.cpp \ ../../core/subsurface-qt/SettingsObjectWrapper.cpp \ @@ -189,7 +190,7 @@ HEADERS += \ ../../core/settings/qPref.h \ ../../core/settings/qPrefAnimations.h \ ../../core/settings/qPrefDisplay.h \ - ../../core/settings/qPref_private.h \ + ../../core/settings/qPrefPrivate.h \ ../../core/subsurface-qt/CylinderObjectHelper.h \ ../../core/subsurface-qt/DiveObjectHelper.h \ ../../core/subsurface-qt/SettingsObjectWrapper.h \ -- cgit v1.2.3-70-g09d2