[SCM] ktp-contact-list packaging branch, master, updated. debian/15.12.1-2-1070-g6c56f91

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:04:48 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-contact-list.git;a=commitdiff;h=c0d2d2a

The following commit has been merged in the master branch:
commit c0d2d2abc4f1e388d10b9022fe3aa6666cbd2755
Author: Daniele Elmo Domenichelli <daniele.domenichelli at gmail.com>
Date:   Fri May 28 13:12:20 2010 +0000

    Use telepathy-qt4 constants instead of numeric constants
    see http://reviewboard.kde.org/r/4170/
    
    svn path=/trunk/playground/network/telepathy-contactlist/; revision=1131574
---
 contact-item.cpp | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/contact-item.cpp b/contact-item.cpp
index 14d7975..e6616b0 100644
--- a/contact-item.cpp
+++ b/contact-item.cpp
@@ -28,6 +28,8 @@
 #include <QPainter>
 #include <kiconloader.h>
 
+#include <TelepathyQt4/Constants>
+
 ContactItem::ContactItem(Nepomuk::PersonContact personContact,
                          Nepomuk::IMAccount imAccount,
                          QObject *parent)
@@ -98,19 +100,19 @@ void ContactItem::updatePresenceIcon()
     QString iconName;
 
     switch (statusTypes.first()) {
-    case 2:
+    case Tp::ConnectionPresenceTypeAvailable:
         iconName = "user-online";
         break;
-    case 3:
+    case Tp::ConnectionPresenceTypeAway:
         iconName = "user-away";
         break;
-    case 4:
+    case Tp::ConnectionPresenceTypeExtendedAway:
         iconName = "user-away-extended";
         break;
-    case 5:
+    case Tp::ConnectionPresenceTypeHidden:
         iconName = "user-invisible";
         break;
-    case 6:
+    case Tp::ConnectionPresenceTypeBusy:
         iconName = "user-busy";
         break;
     default:

-- 
ktp-contact-list packaging



More information about the pkg-kde-commits mailing list