- 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:
parent
f0fb9b3022
commit
3537033b91
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user