[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:13:57 UTC 2016


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

The following commit has been merged in the master branch:
commit 0e496fdcfc0e5ecb2a3530ad5cfc6a4d6c27cb30
Author: Sven Brauch <svenbrauch at googlemail.com>
Date:   Thu Sep 12 14:44:30 2013 +0200

    prevent the tooltips from covering the treeview expand/collapse controls
---
 tooltips/tooltipmanager.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tooltips/tooltipmanager.cpp b/tooltips/tooltipmanager.cpp
index 4246314..555d425 100644
--- a/tooltips/tooltipmanager.cpp
+++ b/tooltips/tooltipmanager.cpp
@@ -117,7 +117,8 @@ void ToolTipManager::requestToolTip(const QModelIndex &index)
         KToolTip::hideTip();
 
         QRect rect = d->view->visualRect(index);
-        d->itemRect = QRect(d->view->viewport()->mapToGlobal(rect.topLeft()),
+        // use 0 as the left x coordinate to make sure the tooltip does not cover the tree view controls
+        d->itemRect = QRect(d->view->viewport()->mapToGlobal(QPoint(0, rect.topLeft().y())),
                             d->view->viewport()->mapToGlobal(rect.bottomRight()));
         d->item = index;
         d->timer->start(300);

-- 
ktp-contact-list packaging



More information about the pkg-kde-commits mailing list