[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:21:39 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=74cb254

The following commit has been merged in the master branch:
commit 74cb25407b34e45be4e27c2db27d74f88d285e39
Author: Daniele E. Domenichelli <daniele.domenichelli at gmail.com>
Date:   Mon Mar 12 18:42:39 2012 +0100

    Add a method to return the account icon for the widget
---
 lib/chat-widget.cpp | 5 +++++
 lib/chat-widget.h   | 3 +++
 2 files changed, 8 insertions(+)

diff --git a/lib/chat-widget.cpp b/lib/chat-widget.cpp
index bb1f5ef..65f5ce6 100644
--- a/lib/chat-widget.cpp
+++ b/lib/chat-widget.cpp
@@ -258,6 +258,11 @@ KIcon ChatWidget::icon() const
     return KTp::Presence(Tp::Presence::offline()).icon();
 }
 
+KIcon ChatWidget::accountIcon() const
+{
+    return KIcon(d->account->iconName());
+}
+
 bool ChatWidget::isGroupChat() const
 {
     return d->isGroupChat;
diff --git a/lib/chat-widget.h b/lib/chat-widget.h
index e1efbbb..10de317 100644
--- a/lib/chat-widget.h
+++ b/lib/chat-widget.h
@@ -57,6 +57,9 @@ public:
     /** Returns the icon of this chat window */
     KIcon icon() const;
 
+    /** Returns the icon for the account used in this chat window */
+    KIcon accountIcon() const;
+
     /** returns whether the chat is considered a group chat */
     bool isGroupChat() const;
 

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list