summaryrefslogtreecommitdiffstats
path: root/applications
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-05-23 22:27:56 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-05-23 22:27:56 +0200
commitacdc7613659181ddb5bd24484b180567dacf0108 (patch)
tree677d60c869d7f3ac598adedfbbde87993931c5e0 /applications
parent9782eba7c164eba5625bc4224ad0f49ec2fc76a7 (diff)
downloadkube-acdc7613659181ddb5bd24484b180567dacf0108.tar.gz
kube-acdc7613659181ddb5bd24484b180567dacf0108.zip
Register the icons resource from the frameworks plugin
So we have the icons also available from the test views.
Diffstat (limited to 'applications')
-rw-r--r--applications/kube/main.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/applications/kube/main.cpp b/applications/kube/main.cpp
index 411e2d6a..e0d37fc2 100644
--- a/applications/kube/main.cpp
+++ b/applications/kube/main.cpp
@@ -169,19 +169,6 @@ int main(int argc, char *argv[])
169 app.setApplicationVersion(kube_VERSION_STRING); 169 app.setApplicationVersion(kube_VERSION_STRING);
170 app.setFont(QFont{"Noto Sans", app.font().pointSize(), QFont::Normal}); 170 app.setFont(QFont{"Noto Sans", app.font().pointSize(), QFont::Normal});
171 171
172 QString kubeIcons = QStandardPaths::locate(QStandardPaths::AppDataLocation, QStringLiteral("kube-icons.rcc"));
173 //For windows
174 if (kubeIcons.isEmpty()) {
175 kubeIcons = findFile(QStringLiteral("/kube/kube-icons.rcc"), QStandardPaths::standardLocations(QStandardPaths::AppDataLocation));
176 }
177 if (!QResource::registerResource(kubeIcons, "/icons/kube")) {
178 qWarning() << "Failed to register icon resource!" << kubeIcons;
179 qWarning() << "Searched paths: " << QStandardPaths::standardLocations(QStandardPaths::AppDataLocation);
180 Q_ASSERT(false);
181 } else {
182 QIcon::setThemeSearchPaths(QStringList() << QStringLiteral(":/icons"));
183 QIcon::setThemeName(QStringLiteral("kube"));
184 }
185 172
186 QCommandLineParser parser; 173 QCommandLineParser parser;
187 parser.setApplicationDescription("A communication and collaboration client."); 174 parser.setApplicationDescription("A communication and collaboration client.");