From 3537033b913ef8ea44b6b8c28a5217083d0300c4 Mon Sep 17 00:00:00 2001 From: "Richard J. Moore" Date: Fri, 21 Dec 2007 15:59:04 +0000 Subject: [PATCH] - Partial fix to prevent tooltips being displayed over the top of popup menus. There's still a problem however as the 1 second timer can be started before the menu is triggered. The tooltip code needs to detect when this is occuring somehow and suppress the tip in such cases. svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=751298 --- widgets/widget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/widgets/widget.cpp b/widgets/widget.cpp index 23572ef44..f484a4695 100644 --- a/widgets/widget.cpp +++ b/widgets/widget.cpp @@ -557,6 +557,9 @@ void Widget::hoverEnterEvent(QGraphicsSceneHoverEvent *e) return; //Nothing to show } + if (view()->mouseGrabber()) { + return; // Someone has the mouse (eg. a context menu) + } QPoint viewPos = view()->mapFromScene(scenePos()); QPoint globalPos = view()->mapToGlobal(viewPos); ToolTip::instance()->show(globalPos, d->toolTip);