mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
themeinterface: move registration to themeinterface
Move setup call and registration from subsurface-helper to themeInterface, in order to keep the registration where the code are. Signed-off-by: jan Iversen <jan@casacondor.com>
This commit is contained in:
parent
f69e1e31f0
commit
1d35942249
3 changed files with 10 additions and 8 deletions
|
@ -4,6 +4,7 @@
|
|||
#include <QObject>
|
||||
#include <QColor>
|
||||
#include <QSettings>
|
||||
#include <QQmlContext>
|
||||
|
||||
class themeInterface : public QObject {
|
||||
Q_OBJECT
|
||||
|
@ -69,7 +70,7 @@ class themeInterface : public QObject {
|
|||
public:
|
||||
static themeInterface *instance();
|
||||
|
||||
void setup();
|
||||
static void setup(QQmlContext *ct);
|
||||
|
||||
public slots:
|
||||
void set_currentTheme(const QString &theme);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue