- 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
This commit is contained in:
Richard J. Moore 2007-12-21 15:59:04 +00:00
parent f0fb9b3022
commit 3537033b91

View File

@ -557,6 +557,9 @@ void Widget::hoverEnterEvent(QGraphicsSceneHoverEvent *e)
return; //Nothing to show return; //Nothing to show
} }
if (view()->mouseGrabber()) {
return; // Someone has the mouse (eg. a context menu)
}
QPoint viewPos = view()->mapFromScene(scenePos()); QPoint viewPos = view()->mapFromScene(scenePos());
QPoint globalPos = view()->mapToGlobal(viewPos); QPoint globalPos = view()->mapToGlobal(viewPos);
ToolTip::instance()->show(globalPos, d->toolTip); ToolTip::instance()->show(globalPos, d->toolTip);