projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a9c833
)
Send icon name instead of pixmap
author
Kai Uwe Broulik
<kde@privat.broulik.de>
Tue, 30 Apr 2019 12:27:08 +0000
(14:27 +0200)
committer
Manuel 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
patch
|
blob
|
history
diff --git
a/src/qtui/knotificationbackend.cpp
b/src/qtui/knotificationbackend.cpp
index
a3415d5
..
68717cd
100644
(file)
--- a/
src/qtui/knotificationbackend.cpp
+++ b/
src/qtui/knotificationbackend.cpp
@@
-65,7
+65,7
@@
void KNotificationBackend::notify(const Notification& n)
QString message = QString("<b><%1></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);