diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-03-30 21:33:05 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-30 13:54:12 -0700 |
commit | 9d485f9626135f1297b01b095320b8c134f3a7e9 (patch) | |
tree | 7c0e075630d0952c1abbf36d1392de1448269155 /mobile-widgets/themeinterface.cpp | |
parent | 0e9bd27bae00641ce7f2df9dd4d080414b33e3fd (diff) | |
download | subsurface-9d485f9626135f1297b01b095320b8c134f3a7e9.tar.gz |
cleanup: fold ThemeInterface::setup() into constructor
There appears to be no reason for two-phase initialization.
Let's keep things simple: let the constructor produce a
functioning object.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'mobile-widgets/themeinterface.cpp')
-rw-r--r-- | mobile-widgets/themeinterface.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mobile-widgets/themeinterface.cpp b/mobile-widgets/themeinterface.cpp index 68f9564db..9e522b936 100644 --- a/mobile-widgets/themeinterface.cpp +++ b/mobile-widgets/themeinterface.cpp @@ -50,11 +50,8 @@ ThemeInterface *ThemeInterface::instance() return self; } -void ThemeInterface::setup(QQmlContext *ct) +ThemeInterface::ThemeInterface() { - // Register interface class - ct->setContextProperty("subsurfaceTheme", this); - // get current theme m_currentTheme = qPrefDisplay::theme(); update_theme(); |