diff options
author | jan Iversen <jani@apache.org> | 2018-07-17 15:22:51 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-07-18 10:40:08 -0700 |
commit | 3c3729711c86a621b425370fd11d4271e4208f1b (patch) | |
tree | 6d689f6b3ce4e24997d1a79e63e3039eef8c7642 /packaging | |
parent | c0e9e978a1aa70713f9478391ebde353708a2f07 (diff) | |
download | subsurface-3c3729711c86a621b425370fd11d4271e4208f1b.tar.gz |
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 <jani@apache.org>
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/ios/Subsurface-mobile.pro | 3 |
1 files changed, 2 insertions, 1 deletions
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 \ |