From d46e1e86c9869996285ac3f88970cf0e9e23e128 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Tue, 30 Apr 2019 14:27:08 +0200 Subject: [PATCH] Send icon name instead of pixmap Lets the notification server load an appropriate crisp pixmap depending on the size it wants to display it at --- src/qtui/knotificationbackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qtui/knotificationbackend.cpp b/src/qtui/knotificationbackend.cpp index a3415d53..68717cd4 100644 --- a/src/qtui/knotificationbackend.cpp +++ b/src/qtui/knotificationbackend.cpp @@ -65,7 +65,7 @@ void KNotificationBackend::notify(const Notification& n) QString message = QString("<%1> %2").arg(n.sender, n.message.toHtmlEscaped()); KNotification* notification = KNotification::event(type, message, - icon::get("dialog-information").pixmap(48), + QStringLiteral("dialog-information"), QtUi::mainWindow(), KNotification::RaiseWidgetOnActivation | KNotification::CloseWhenWidgetActivated | KNotification::CloseOnTimeout); -- 2.20.1