add title to pairing request notification

This commit is contained in:
Piyush Aggarwal 2019-09-30 20:53:46 +00:00
parent 7d27ef1417
commit 118d91ae78

View file

@ -62,6 +62,7 @@ public:
KNotification* notification = new KNotification(QStringLiteral("pairingRequest")); KNotification* notification = new KNotification(QStringLiteral("pairingRequest"));
notification->setIconName(QStringLiteral("dialog-information")); notification->setIconName(QStringLiteral("dialog-information"));
notification->setComponentName(QStringLiteral("kdeconnect")); notification->setComponentName(QStringLiteral("kdeconnect"));
notification->setTitle(QStringLiteral("KDE Connect"));
notification->setText(i18n("Pairing request from %1", device->name().toHtmlEscaped())); notification->setText(i18n("Pairing request from %1", device->name().toHtmlEscaped()));
notification->setActions(QStringList() << i18n("Accept") << i18n("Reject")); notification->setActions(QStringList() << i18n("Accept") << i18n("Reject"));
// notification->setTimeout(PairingHandler::pairingTimeoutMsec()); // notification->setTimeout(PairingHandler::pairingTimeoutMsec());