[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:06:44 UTC 2016


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

The following commit has been merged in the master branch:
commit d0d33350f24f87b739358114e3c3d02439307447
Author: Daniele E. Domenichelli <daniele.domenichelli at gmail.com>
Date:   Sat Jun 18 04:16:26 2011 +0200

    Add contact id in help tooltip
    
    Reviewed by: David Edmundson
    REVIEW: 101667
---
 abstract-contact-delegate.cpp | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/abstract-contact-delegate.cpp b/abstract-contact-delegate.cpp
index fd9d7f5..0014c23 100644
--- a/abstract-contact-delegate.cpp
+++ b/abstract-contact-delegate.cpp
@@ -145,6 +145,7 @@ bool AbstractContactDelegate::helpEvent(QHelpEvent *event, QAbstractItemView *vi
     const QString displayName = index.parent().data(AccountsModel::DisplayNameRole).toString();
     const QString cmIconPath = KIconLoader::global()->iconPath(index.parent().data(AccountsModel::IconRole).toString(), 1);
     const QString alias = index.data(AccountsModel::AliasRole).toString();
+    const QString id = index.data(AccountsModel::IdRole).toString();
     const QString presenceStatus = index.data(AccountsModel::PresenceMessageRole).toString();
     QString presenceIconPath;
     QString presenceText;
@@ -181,13 +182,14 @@ bool AbstractContactDelegate::helpEvent(QHelpEvent *event, QAbstractItemView *vi
     }
 
     /* The tooltip is composed of a HTML table to display the items in it of the contact.
-     * -------------------------
-     * |        | Con's Alias  |
-     * - Avatar ----------------
-     * |        | Con's Status*|
-     * -------------------------
-     * |  Contact is blocked*  |
-     * -------------------------
+     * ---------------------------
+     * |          | Con's Alias  |
+     * |  Avatar  | (Con's Id)   |
+     * |          ----------------
+     * |          | Con's Status*|
+     * ---------------------------
+     * |  Contact is blocked*    |
+     * ---------------------------
      * * Display actual status name if contact has no custom status message.
      * * Contact is blocked will only show if the contact is blocked, else no display.
      */
@@ -202,7 +204,7 @@ bool AbstractContactDelegate::helpEvent(QHelpEvent *event, QAbstractItemView *vi
 
     table += QString("</td>");
     table += QString("<td rowspan='2'><img src='%1' height='16' width='16' /> </td>").arg(presenceIconPath);
-    table += QString("<td><b>%1</b></td></tr>").arg(alias);
+    table += QString("<td><b>%1</b><br>(%2)</td></tr>").arg(alias).arg(id);
     table += QString("<tr><td>");
     table += QString("%2").arg(presenceStatus.isEmpty() ? presenceText : presenceStatus);
     table += QString("</td></tr>");

-- 
ktp-contact-list packaging



More information about the pkg-kde-commits mailing list