From 13a99a7e99e348b813763502b74d519403fb70d9 Mon Sep 17 00:00:00 2001 From: Piyush Aggarwal Date: Tue, 8 Jun 2021 02:34:26 +0530 Subject: [PATCH] Set program logo in KAboutData and trigger KIconLoader plugin in the process --- icons/custom_icons.qrc | 3 +++ indicator/main.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/icons/custom_icons.qrc b/icons/custom_icons.qrc index e691d21a4..81fcc23e5 100644 --- a/icons/custom_icons.qrc +++ b/icons/custom_icons.qrc @@ -43,4 +43,7 @@ status/32-status-tvdisconnected.svg status/32-status-tvtrusted.svg + + app/sc-apps-kdeconnect.svg + diff --git a/indicator/main.cpp b/indicator/main.cpp index 73f026093..bb5187dce 100644 --- a/indicator/main.cpp +++ b/indicator/main.cpp @@ -41,6 +41,9 @@ int main(int argc, char** argv) i18n("(C) 2016 Aleix Pol Gonzalez")); KAboutData::setApplicationData(about); + // Trigger loading the KIconLoader plugin + about.setProgramLogo(QIcon(QStringLiteral(":/icons/kdeconnect/kdeconnect.svg"))); + #ifdef Q_OS_WIN QApplication::setStyle(QStringLiteral("breeze")); IndicatorHelper helper(QUrl::fromLocalFile(qApp->applicationDirPath()));