diff options
author | jan Iversen <jani@apache.org> | 2018-08-14 10:30:07 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-08-15 16:11:39 -0700 |
commit | 9b8a6fa8552647c1c1e7b78000e93a1bbc508365 (patch) | |
tree | 4196fe4371cab7e02c5168256e2d6ce380aadbce /core/settings/qPrefGeocoding.h | |
parent | 0825f644e0b98190d68e0b63c4204fa8282e84b4 (diff) | |
download | subsurface-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.h')
-rw-r--r-- | core/settings/qPrefGeocoding.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/settings/qPrefGeocoding.h b/core/settings/qPrefGeocoding.h index ce3eba2e5..03c9f59c8 100644 --- a/core/settings/qPrefGeocoding.h +++ b/core/settings/qPrefGeocoding.h @@ -27,9 +27,9 @@ public: taxonomy_category third_taxonomy_category() { return prefs.geocoding.category[2]; } public slots: - void set_first_taxonomy_category(taxonomy_category value); - void set_second_taxonomy_category(taxonomy_category value); - void set_third_taxonomy_category(taxonomy_category value); + static void set_first_taxonomy_category(taxonomy_category value); + static void set_second_taxonomy_category(taxonomy_category value); + static void set_third_taxonomy_category(taxonomy_category value); signals: void first_taxonomy_category_changed(taxonomy_category value); @@ -37,9 +37,9 @@ signals: void third_taxonomy_category_changed(taxonomy_category value); private: - void disk_first_taxonomy_category(bool doSync); - void disk_second_taxonomy_category(bool doSync); - void disk_third_taxonomy_category(bool doSync); + static void disk_first_taxonomy_category(bool doSync); + static void disk_second_taxonomy_category(bool doSync); + static void disk_third_taxonomy_category(bool doSync); }; #endif |