summaryrefslogtreecommitdiffstats
path: root/core/settings/qPrefGeocoding.cpp
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-08-14 10:30:07 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-15 16:11:39 -0700
commit9b8a6fa8552647c1c1e7b78000e93a1bbc508365 (patch)
tree4196fe4371cab7e02c5168256e2d6ce380aadbce /core/settings/qPrefGeocoding.cpp
parent0825f644e0b98190d68e0b63c4204fa8282e84b4 (diff)
downloadsubsurface-9b8a6fa8552647c1c1e7b78000e93a1bbc508365.tar.gz
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>
Diffstat (limited to 'core/settings/qPrefGeocoding.cpp')
-rw-r--r--core/settings/qPrefGeocoding.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/settings/qPrefGeocoding.cpp b/core/settings/qPrefGeocoding.cpp
index 8d7553e53..a726e721f 100644
--- a/core/settings/qPrefGeocoding.cpp
+++ b/core/settings/qPrefGeocoding.cpp
@@ -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)