diff options
author | jan Iversen <jani@apache.org> | 2018-08-15 11:50:53 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-08-15 16:11:39 -0700 |
commit | 6aee600aa7022dd8f0453c658c967d5268c611b3 (patch) | |
tree | 6c3547dc39c59d4cd79eb72adb45bc3e3760a58f /desktop-widgets/preferences/preferences_georeference.cpp | |
parent | 3b84dbe554a76e2f024b7254c079c761429223ac (diff) | |
download | subsurface-6aee600aa7022dd8f0453c658c967d5268c611b3.tar.gz |
desktop-widgets/preferences: reemove SettingsObjectWrapper
remove use of SettingsObjectWrapper::
remove include of SettingsObjectWrapper.h
use qPrefFoo:: for setters and getters
replace prefs.foo with qPrefXYZ::foo() where feasible
(this expands to the same code, but gives us more control
over the variable).
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'desktop-widgets/preferences/preferences_georeference.cpp')
-rw-r--r-- | desktop-widgets/preferences/preferences_georeference.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/desktop-widgets/preferences/preferences_georeference.cpp b/desktop-widgets/preferences/preferences_georeference.cpp index 08764434a..40196e44f 100644 --- a/desktop-widgets/preferences/preferences_georeference.cpp +++ b/desktop-widgets/preferences/preferences_georeference.cpp @@ -2,7 +2,7 @@ #include "preferences_georeference.h" #include "ui_preferences_georeference.h" #include "core/qthelper.h" -#include "core/subsurface-qt/SettingsObjectWrapper.h" +#include "core/settings/qPrefGeocoding.h" #include "qt-models/divelocationmodel.h" #include <ctime> @@ -30,8 +30,7 @@ void PreferencesGeoreference::refreshSettings() void PreferencesGeoreference::syncSettings() { - auto geocoding = qPrefGeocoding::instance(); - geocoding->set_first_taxonomy_category((taxonomy_category) ui->first_item->currentIndex()); - geocoding->set_second_taxonomy_category((taxonomy_category) ui->second_item->currentIndex()); - geocoding->set_third_taxonomy_category((taxonomy_category) ui->third_item->currentIndex()); + qPrefGeocoding::set_first_taxonomy_category((taxonomy_category) ui->first_item->currentIndex()); + qPrefGeocoding::set_second_taxonomy_category((taxonomy_category) ui->second_item->currentIndex()); + qPrefGeocoding::set_third_taxonomy_category((taxonomy_category) ui->third_item->currentIndex()); } |