add windowIcon to daemon for better support on Windows

This commit is contained in:
Piyush Aggarwal 2019-08-19 18:57:45 +00:00
parent 16de0150ce
commit 607d643d8c

View file

@ -26,6 +26,8 @@
#include <QCommandLineParser> #include <QCommandLineParser>
#include <QDBusMessage> #include <QDBusMessage>
#include <QSessionManager> #include <QSessionManager>
#include <QStandardPaths>
#include <QIcon>
#include <KAboutData> #include <KAboutData>
#include <KDBusService> #include <KDBusService>
@ -51,7 +53,9 @@ public:
DesktopDaemon(QObject* parent = nullptr) DesktopDaemon(QObject* parent = nullptr)
: Daemon(parent) : Daemon(parent)
, m_nam(nullptr) , m_nam(nullptr)
{} {
qApp->setWindowIcon(QIcon(QStandardPaths::locate(QStandardPaths::AppLocalDataLocation, QStringLiteral("icons/hicolor/scalable/apps/kdeconnect.svgz"))));
}
void askPairingConfirmation(Device* device) override void askPairingConfirmation(Device* device) override
{ {