[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:18:31 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=c52fa6d
The following commit has been merged in the master branch:
commit c52fa6d895cddba858cf7d50798ee8caebfcdb7f
Author: David Edmundson <kde at davidedmundson.co.uk>
Date: Fri Dec 17 01:31:42 2010 +0000
Avatar support in notifications.
---
lib/chatwindow.cpp | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/lib/chatwindow.cpp b/lib/chatwindow.cpp
index f649bd3..f9a0a35 100644
--- a/lib/chatwindow.cpp
+++ b/lib/chatwindow.cpp
@@ -203,6 +203,13 @@ void ChatWindow::handleIncomingMessage(const Tp::ReceivedMessage &message)
KNotification *notification = new KNotification(notificationType, this);
notification->setComponentData(d->telepathyComponentData());
notification->setTitle(i18n("%1 has sent you a message").arg(message.sender()->alias()));
+
+ QPixmap notificationPixmap;
+ if (notificationPixmap.load(message.sender()->avatarData().fileName))
+ {
+ notification->setPixmap(notificationPixmap);
+ }
+
notification->setText(message.text());
//allows per contact notifications
notification->addContext("contact", message.sender()->id());
@@ -234,6 +241,11 @@ void ChatWindow::handleMessageSent(const Tp::Message &message, Tp::MessageSendin
KNotification *notification = new KNotification(QLatin1String("kde_telepathy_outgoing"), this);
notification->setComponentData(d->telepathyComponentData());
notification->setTitle(i18n("You have sent a message"));
+ QPixmap notificationPixmap;
+ if (notificationPixmap.load(sender->avatarData().fileName))
+ {
+ notification->setPixmap(notificationPixmap);
+ }
notification->setText(message.text());
notification->sendEvent();
}
--
ktp-text-ui packaging
More information about the pkg-kde-commits
mailing list