[SCM] ktp-contact-applet packaging branch, master, updated. debian/15.12.1-1-966-gde83ac5

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:19:20 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-desktop-applets.git;a=commitdiff;h=a57f7f6

The following commit has been merged in the master branch:
commit a57f7f6b38e0a963967285476a321136236b835e
Author: Siddhartha Sahu <sh.siddhartha at gmail.com>
Date:   Tue Jul 1 12:53:22 2014 +0530

    Limit no. of characters of custom status displayed in context menu
    
    REVIEW: 119052
---
 presence/src/presence-applet.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/presence/src/presence-applet.cpp b/presence/src/presence-applet.cpp
index f44855a..dcffad0 100644
--- a/presence/src/presence-applet.cpp
+++ b/presence/src/presence-applet.cpp
@@ -179,6 +179,9 @@ void TelepathyPresenceApplet::setupContextMenuActions()
     for (int i = 0; i < m_presences->rowCount(); i++) {
         KTp::Presence presence = m_presences->data(i).value<KTp::Presence>();
         QString menuentry = m_presences->index(i, 0).data(Qt::DisplayRole).toString();
+        if (menuentry.size() > 60) {
+            menuentry =  menuentry.left(60).append("...");
+        }
         KAction* action = new KAction(getThemedIcon(presence.iconName(false)), menuentry, this);
         action->setData(QVariant::fromValue(presence));
         connect(action, SIGNAL(triggered()), this, SLOT(onPresenceActionClicked()));

-- 
ktp-contact-applet packaging



More information about the pkg-kde-commits mailing list