Set program logo in KAboutData and trigger KIconLoader plugin in the process

This commit is contained in:
Piyush Aggarwal 2021-06-08 02:34:26 +05:30
parent 82129cd866
commit 13a99a7e99
2 changed files with 6 additions and 0 deletions

View file

@ -43,4 +43,7 @@
<file alias="tvdisconnected.svg">status/32-status-tvdisconnected.svg</file>
<file alias="tvtrusted.svg">status/32-status-tvtrusted.svg</file>
</qresource>
<qresource prefix="/icons/kdeconnect/">
<file alias="kdeconnect.svg">app/sc-apps-kdeconnect.svg</file>
</qresource>
</RCC>

View file

@ -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()));