catch odd case of tooltip not hiding due to unhiding into a widget that is registered but has no tipdata associated with it
patch contributed by 潘卫平 BUG:198061 svn path=/trunk/KDE/kdelibs/; revision=988376
This commit is contained in:
parent
5bdb436709
commit
1611d9f38d
@ -353,6 +353,11 @@ void ToolTipManagerPrivate::showToolTip()
|
|||||||
QHash<QGraphicsWidget *, ToolTipContent>::const_iterator tooltip = tooltips.constFind(currentWidget);
|
QHash<QGraphicsWidget *, ToolTipContent>::const_iterator tooltip = tooltips.constFind(currentWidget);
|
||||||
|
|
||||||
if (tooltip == tooltips.constEnd() || tooltip.value().isEmpty()) {
|
if (tooltip == tooltips.constEnd() || tooltip.value().isEmpty()) {
|
||||||
|
if (isShown) {
|
||||||
|
delayedHide = true;
|
||||||
|
hideTimer->start(250);
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user