From 1d35942249a41a703db6e21323ddd21719303f3f Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Tue, 28 Jan 2020 15:04:22 +0100 Subject: 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 --- mobile-widgets/themeinterface.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mobile-widgets/themeinterface.h') diff --git a/mobile-widgets/themeinterface.h b/mobile-widgets/themeinterface.h index 9e135538c..cb89c40fd 100644 --- a/mobile-widgets/themeinterface.h +++ b/mobile-widgets/themeinterface.h @@ -4,6 +4,7 @@ #include #include #include +#include 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); -- cgit v1.2.3-70-g09d2