diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-12-19 15:14:42 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-12-19 15:14:42 +0100 |
commit | 33330c55ec234e7ff31727c5a64bdd84768fa0d2 (patch) | |
tree | f613101dc0b99b0d4d1b181a4b0929d73e799ec8 | |
parent | 0dc78f4436edd51a97e8b603a1730ccaba05ec4a (diff) | |
download | kube-33330c55ec234e7ff31727c5a64bdd84768fa0d2.tar.gz kube-33330c55ec234e7ff31727c5a64bdd84768fa0d2.zip |
Removed setting the theme from main.cpp
It's redundant (we're setting it from frameworkplugin), and if main.cpp
doesn't contain any "special" setup code, then using qmlscene should
work just as well, which is good for development.
-rw-r--r-- | applications/kube/main.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/applications/kube/main.cpp b/applications/kube/main.cpp index 9241d898..e098ed3a 100644 --- a/applications/kube/main.cpp +++ b/applications/kube/main.cpp | |||
@@ -36,11 +36,9 @@ | |||
36 | #include <QJsonDocument> | 36 | #include <QJsonDocument> |
37 | #include <QJsonObject> | 37 | #include <QJsonObject> |
38 | #include <QFileInfo> | 38 | #include <QFileInfo> |
39 | |||
40 | #include <QIcon> | ||
41 | #include <QFont> | 39 | #include <QFont> |
42 | |||
43 | #include <QDebug> | 40 | #include <QDebug> |
41 | |||
44 | #include "framework/src/keyring.h" | 42 | #include "framework/src/keyring.h" |
45 | #include "kube_version.h" | 43 | #include "kube_version.h" |
46 | 44 | ||
@@ -170,8 +168,6 @@ int main(int argc, char *argv[]) | |||
170 | } | 168 | } |
171 | } | 169 | } |
172 | 170 | ||
173 | QIcon::setThemeName("kube"); | ||
174 | |||
175 | QQmlApplicationEngine engine; | 171 | QQmlApplicationEngine engine; |
176 | const auto file = "/org/kube/components/kube/main.qml"; | 172 | const auto file = "/org/kube/components/kube/main.qml"; |
177 | const auto mainFile = [&] { | 173 | const auto mainFile = [&] { |