[SCM] ktp-common-internals packaging branch, master, updated. debian/15.12.1-2-1839-gf0635e9

Maximiliano Curia maxy at moszumanska.debian.org
Mon May 9 09:05:16 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-common-internals.git;a=commitdiff;h=3512ed9

The following commit has been merged in the master branch:
commit 3512ed90c61d319a3d2ee6f77f1ebe58568f1315
Author: Michael Bohlender <michael.bohlender at mytum.de>
Date:   Tue Jun 26 19:17:58 2012 +0100

    Add tooltip to quick chat plasmoid
    
    Reviewed-by: David Edmundson
    BUG: 296655
---
 KTp/Declarative/conversation-target.cpp | 10 ++++++++++
 KTp/Declarative/conversation-target.h   |  3 +++
 2 files changed, 13 insertions(+)

diff --git a/KTp/Declarative/conversation-target.cpp b/KTp/Declarative/conversation-target.cpp
index 53280d0..f9c285d 100644
--- a/KTp/Declarative/conversation-target.cpp
+++ b/KTp/Declarative/conversation-target.cpp
@@ -85,9 +85,19 @@ QIcon ConversationTarget::presenceIcon() const
     }
 }
 
+QString ConversationTarget::presenceIconName() const
+{
+    if (d->contact) {
+       return KTp::Presence(d->contact->presence()).iconName();
+    } else {
+       return QString();                                                                    
+    }                                                                                        
+}
+
 void ConversationTarget::onPresenceChanged(const Tp::Presence&)
 {
     Q_EMIT presenceIconChanged(presenceIcon());
+    Q_EMIT presenceIconNameChanged(presenceIconName());                                      
 }
 
 void ConversationTarget::onAvatarDataChanged(const Tp::AvatarData&)
diff --git a/KTp/Declarative/conversation-target.h b/KTp/Declarative/conversation-target.h
index ccfd358..cd45f2d 100644
--- a/KTp/Declarative/conversation-target.h
+++ b/KTp/Declarative/conversation-target.h
@@ -35,6 +35,7 @@ class KDE_TELEPATHY_CHAT_EXPORT ConversationTarget : public QObject
     Q_PROPERTY(QIcon avatar READ avatar NOTIFY avatarChanged);
     Q_PROPERTY(QString nick READ nick NOTIFY nickChanged);
     Q_PROPERTY(QIcon presenceIcon READ presenceIcon NOTIFY presenceIconChanged);
+    Q_PROPERTY(QString presenceIconName READ presenceIconName NOTIFY presenceIconNameChanged)
     Q_PROPERTY(QString id READ id)
 
 public:
@@ -45,6 +46,7 @@ public:
     QString id() const;
     QString nick() const;
     QIcon   presenceIcon() const;
+    QString presenceIconName() const;
 
     Tp::ContactPtr contact() const;
 
@@ -52,6 +54,7 @@ Q_SIGNALS:
     void avatarChanged(QIcon avatar);
     void nickChanged(QString nick);
     void presenceIconChanged(QIcon icon);
+    void presenceIconNameChanged(QString icon);
 
 
 private Q_SLOTS:

-- 
ktp-common-internals packaging



More information about the pkg-kde-commits mailing list