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 /core/CMakeLists.txt | |
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 'core/CMakeLists.txt')
-rw-r--r-- | core/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 5b476c779..9a7d108c5 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -102,6 +102,7 @@ set(SUBSURFACE_CORE_LIB_SRCS settings/qPref.cpp settings/qPrefAnimations.cpp settings/qPrefDisplay.cpp + settings/qPrefPrivate.cpp #Subsurface Qt have the Subsurface structs QObjectified for easy access via QML. subsurface-qt/DiveObjectHelper.cpp |