From acdc7613659181ddb5bd24484b180567dacf0108 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 23 May 2018 22:27:56 +0200 Subject: Register the icons resource from the frameworks plugin So we have the icons also available from the test views. --- applications/kube/main.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'applications') 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[]) app.setApplicationVersion(kube_VERSION_STRING); app.setFont(QFont{"Noto Sans", app.font().pointSize(), QFont::Normal}); - QString kubeIcons = QStandardPaths::locate(QStandardPaths::AppDataLocation, QStringLiteral("kube-icons.rcc")); - //For windows - if (kubeIcons.isEmpty()) { - kubeIcons = findFile(QStringLiteral("/kube/kube-icons.rcc"), QStandardPaths::standardLocations(QStandardPaths::AppDataLocation)); - } - if (!QResource::registerResource(kubeIcons, "/icons/kube")) { - qWarning() << "Failed to register icon resource!" << kubeIcons; - qWarning() << "Searched paths: " << QStandardPaths::standardLocations(QStandardPaths::AppDataLocation); - Q_ASSERT(false); - } else { - QIcon::setThemeSearchPaths(QStringList() << QStringLiteral(":/icons")); - QIcon::setThemeName(QStringLiteral("kube")); - } QCommandLineParser parser; parser.setApplicationDescription("A communication and collaboration client."); -- cgit v1.2.3