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


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

The following commit has been merged in the master branch:
commit 3df9b39f7e186d42a157da428dbad9ff1744cac7
Author: David Edmundson <kde at davidedmundson.co.uk>
Date:   Mon Sep 12 02:36:18 2011 +0100

    Add names to the actions in the tooltips.
    Set tooltip style to not show the text. This visually looks the same, but means we can re-use the actions in menus and probably helps accesibility.
    
    REVIEW: 102303
---
 main-widget.cpp | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

diff --git a/main-widget.cpp b/main-widget.cpp
index b477500..2ba546b 100644
--- a/main-widget.cpp
+++ b/main-widget.cpp
@@ -127,38 +127,35 @@ MainWidget::MainWidget(QWidget *parent)
 
     m_userAccountIconButton->setMenu(m_avatarButtonMenu);
 
-    m_addContactAction = new KAction(KIcon("list-add-user"), QString(), this);
-    m_addContactAction->setToolTip(i18n("Add new contacts.."));
+    m_toolBar->setToolButtonStyle(Qt::ToolButtonIconOnly);
+
+    m_addContactAction = new KAction(KIcon("list-add-user"), i18n("Add new contacts.."), this);
 
     m_toolBar->addAction(m_addContactAction);
 
-    m_groupContactsAction = new KAction(KIcon("user-group-properties"), QString(), this);
+    m_groupContactsAction = new KAction(KIcon("user-group-properties"), i18n("Show/Hide groups"), this);
     m_groupContactsAction->setCheckable(true);
     m_groupContactsAction->setChecked(true);
     //TODO: Toggle the tooltip with the button? eg. once its Show, after click its Hide .. ?
-    m_groupContactsAction->setToolTip(i18n("Show/Hide groups"));
 
     m_toolBar->addAction(m_groupContactsAction);
 
-    m_showOfflineAction = new KAction(KIcon("meeting-attending-tentative"), QString(), this);
+    m_showOfflineAction = new KAction(KIcon("meeting-attending-tentative"), i18n("Hide/Show offline users"), this);
     m_showOfflineAction->setCheckable(true);
     m_showOfflineAction->setChecked(false);
-    m_showOfflineAction->setToolTip(i18n("Hide/Show offline users"));
 
     m_toolBar->addAction(m_showOfflineAction);
 
-    m_sortByPresenceAction = new KAction(KIcon("view-sort-ascending"), QString(), this);
+    m_sortByPresenceAction = new KAction(KIcon("view-sort-ascending"), i18n("Sort by presence"), this);
     m_sortByPresenceAction->setCheckable(true);
     m_sortByPresenceAction->setChecked(false);
-    m_sortByPresenceAction->setToolTip(i18n("Sort by presence"));
 
     m_toolBar->addAction(m_sortByPresenceAction);
 
-    m_searchContactAction = new KAction(KIcon("edit-find-user"), QString(), this );
+    m_searchContactAction = new KAction(KIcon("edit-find-user"), i18n("Find contact"), this );
     m_searchContactAction->setShortcut(KStandardShortcut::find());
     m_searchContactAction->setCheckable(true);
     m_searchContactAction->setChecked(false);
-    m_searchContactAction->setToolTip(i18n("Find contact"));
 
     m_toolBar->addAction(m_searchContactAction);
 

-- 
ktp-contact-list packaging



More information about the pkg-kde-commits mailing list