[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:11:19 UTC 2016


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

The following commit has been merged in the master branch:
commit 5dc39fcaf24fe01f65c3cf94e6187db2a6197551
Author: Martin Klapetek <martin.klapetek at gmail.com>
Date:   Tue Sep 11 19:07:35 2012 +0200

    Remove hide timer from tooltips
    
    BUG: 306138
    FIXED-IN: 0.5.1
    Reviewed-by: David Edmundson
---
 tooltips/tooltipmanager.cpp | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/tooltips/tooltipmanager.cpp b/tooltips/tooltipmanager.cpp
index 7b40625..7c506d7 100644
--- a/tooltips/tooltipmanager.cpp
+++ b/tooltips/tooltipmanager.cpp
@@ -51,7 +51,6 @@ public:
 
     QAbstractItemView *view;
     QTimer            *timer;
-    QTimer            *hideTimer;
     QPersistentModelIndex        item;
     QRect              itemRect;
 };
@@ -68,9 +67,6 @@ ToolTipManager::ToolTipManager(QAbstractItemView *parent)
     d->timer = new QTimer(this);
     d->timer->setSingleShot(true);
     connect(d->timer, SIGNAL(timeout()), this, SLOT(prepareToolTip()));
-    d->hideTimer = new QTimer(this);
-    d->hideTimer->setSingleShot(true);
-    connect(d->hideTimer, SIGNAL(timeout()), this, SLOT(hideToolTip()));
 
     // When the mousewheel is used, the items don't get a hovered indication
     // (Qt-issue #200665). To assure that the tooltip still gets hidden,
@@ -91,7 +87,7 @@ bool ToolTipManager::eventFilter(QObject *watched, QEvent *event)
     if (watched == d->view->viewport()) {
         switch (event->type()) {
             case QEvent::Leave:
-                d->hideTimer->start(80);
+                hideToolTip();
                 break;
             case QEvent::MouseButtonPress:
                 hideToolTip();
@@ -103,7 +99,7 @@ bool ToolTipManager::eventFilter(QObject *watched, QEvent *event)
         }
     } else if (watched == KToolTip::currentTip()) {
         if (event->type() == QEvent::Leave) {
-            d->hideTimer->start(80);
+            hideToolTip();
         }
         return false;
     }
@@ -123,7 +119,6 @@ void ToolTipManager::requestToolTip(const QModelIndex &index)
                             d->view->viewport()->mapToGlobal(rect.bottomRight()));
         d->item = index;
         d->timer->start(300);
-        d->hideTimer->stop();
     } else {
         hideToolTip();
     }
@@ -133,7 +128,6 @@ void ToolTipManager::hideToolTip()
 {
     if ( KToolTip::currentTip() && KToolTip::currentTip()->geometry().contains(QCursor::pos()) ) return;
     d->timer->stop();
-    d->hideTimer->stop();
     KToolTip::hideTip();
 }
 

-- 
ktp-contact-list packaging



More information about the pkg-kde-commits mailing list