core: make methods in qPref* static

Make methods static to allow fast and esay access
use qPrefXYZ::foo() instead of qPrefXYZ::instance()->foo()

Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
jan Iversen 2018-08-14 10:30:07 +02:00 committed by Dirk Hohndel
parent 0825f644e0
commit 9b8a6fa855
22 changed files with 349 additions and 348 deletions

View file

@ -26,7 +26,7 @@ void qPrefGeocoding::set_first_taxonomy_category(taxonomy_category value)
if (value != prefs.geocoding.category[0]) {
prefs.geocoding.category[0] = value;
disk_first_taxonomy_category(true);
emit first_taxonomy_category_changed(value);
emit instance()->first_taxonomy_category_changed(value);
}
}
void qPrefGeocoding::disk_first_taxonomy_category(bool doSync)
@ -43,7 +43,7 @@ void qPrefGeocoding::set_second_taxonomy_category(taxonomy_category value)
if (value != prefs.geocoding.category[1]) {
prefs.geocoding.category[1] = value;
disk_second_taxonomy_category(true);
emit second_taxonomy_category_changed(value);
emit instance()->second_taxonomy_category_changed(value);
}
}
void qPrefGeocoding::disk_second_taxonomy_category(bool doSync)
@ -60,7 +60,7 @@ void qPrefGeocoding::set_third_taxonomy_category(taxonomy_category value)
if (value != prefs.geocoding.category[2]) {
prefs.geocoding.category[2] = value;
disk_third_taxonomy_category(true);
emit third_taxonomy_category_changed(value);
emit instance()->third_taxonomy_category_changed(value);
}
}
void qPrefGeocoding::disk_third_taxonomy_category(bool doSync)