Send icon name instead of pixmap master
authorKai Uwe Broulik <kde@privat.broulik.de>
Tue, 30 Apr 2019 12:27:08 +0000 (14:27 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Fri, 31 May 2019 19:07:25 +0000 (21:07 +0200)
Lets the notification server load an appropriate crisp pixmap depending on the size it wants to display it at

src/qtui/knotificationbackend.cpp

index a3415d5..68717cd 100644 (file)
@@ -65,7 +65,7 @@ void KNotificationBackend::notify(const Notification& n)
     QString message = QString("<b>&lt;%1&gt;</b> %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);