mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: activate qPrefGeocoding
remove Geocoding from SettingsObjectWrapper and reference qPrefFacebook update files using SettingsObjectWrapper/Geocoding to use qPrefFacebook this activated qPrefGeocoding and removed the similar class from SettingsObjectWrapper. Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
3cd698361c
commit
af22015452
6 changed files with 23 additions and 107 deletions
|
@ -30,8 +30,8 @@ void PreferencesGeoreference::refreshSettings()
|
|||
|
||||
void PreferencesGeoreference::syncSettings()
|
||||
{
|
||||
auto geocoding = SettingsObjectWrapper::instance()->geocoding;
|
||||
geocoding->setFirstTaxonomyCategory((taxonomy_category) ui->first_item->currentIndex());
|
||||
geocoding->setSecondTaxonomyCategory((taxonomy_category) ui->second_item->currentIndex());
|
||||
geocoding->setThirdTaxonomyCategory((taxonomy_category) ui->third_item->currentIndex());
|
||||
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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue