mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: add auto registration to qPref*
Instead of having all register calls in subsurface-helper.cpp let qPref.cpp handle all qPref registration, since they also need to be different update subsurface-helper and testqml accordingly. Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
7940e45c4c
commit
a71afd31ee
6 changed files with 59 additions and 32 deletions
|
@ -35,6 +35,9 @@ public:
|
|||
static void load() { loadSync(false); }
|
||||
static void sync() { loadSync(true); }
|
||||
|
||||
// Register QML
|
||||
void registerQML();
|
||||
|
||||
public:
|
||||
enum cloud_status {
|
||||
CS_UNKNOWN,
|
||||
|
@ -50,5 +53,4 @@ public:
|
|||
private:
|
||||
static void loadSync(bool doSync);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue