From: Kai Uwe Broulik Date: Tue, 30 Apr 2019 12:27:08 +0000 (+0200) Subject: Send icon name instead of pixmap X-Git-Tag: test-travis-01~49 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=d46e1e86c9869996285ac3f88970cf0e9e23e128 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 --- 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);