mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
0825f644e0
commit
9b8a6fa855
22 changed files with 349 additions and 348 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue