mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
3b84dbe554
commit
6aee600aa7
6 changed files with 71 additions and 81 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue