Set program logo in KAboutData and trigger KIconLoader plugin in the process
This commit is contained in:
parent
82129cd866
commit
13a99a7e99
2 changed files with 6 additions and 0 deletions
|
@ -43,4 +43,7 @@
|
||||||
<file alias="tvdisconnected.svg">status/32-status-tvdisconnected.svg</file>
|
<file alias="tvdisconnected.svg">status/32-status-tvdisconnected.svg</file>
|
||||||
<file alias="tvtrusted.svg">status/32-status-tvtrusted.svg</file>
|
<file alias="tvtrusted.svg">status/32-status-tvtrusted.svg</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
|
<qresource prefix="/icons/kdeconnect/">
|
||||||
|
<file alias="kdeconnect.svg">app/sc-apps-kdeconnect.svg</file>
|
||||||
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|
|
@ -41,6 +41,9 @@ int main(int argc, char** argv)
|
||||||
i18n("(C) 2016 Aleix Pol Gonzalez"));
|
i18n("(C) 2016 Aleix Pol Gonzalez"));
|
||||||
KAboutData::setApplicationData(about);
|
KAboutData::setApplicationData(about);
|
||||||
|
|
||||||
|
// Trigger loading the KIconLoader plugin
|
||||||
|
about.setProgramLogo(QIcon(QStringLiteral(":/icons/kdeconnect/kdeconnect.svg")));
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
QApplication::setStyle(QStringLiteral("breeze"));
|
QApplication::setStyle(QStringLiteral("breeze"));
|
||||||
IndicatorHelper helper(QUrl::fromLocalFile(qApp->applicationDirPath()));
|
IndicatorHelper helper(QUrl::fromLocalFile(qApp->applicationDirPath()));
|
||||||
|
|
Loading…
Reference in a new issue