this is really up to the widgets to get right (e.g by not registering until they are initialized); this prevnets a HUGE number of calls to Plasma::viewFor

svn path=/trunk/KDE/kdelibs/; revision=1123249
This commit is contained in:
Aaron J. Seigo 2010-05-05 17:48:44 +00:00
parent 80bc92740f
commit f0ea5031fb

View File

@ -432,14 +432,7 @@ bool ToolTipManager::eventFilter(QObject *watched, QEvent *event)
break; break;
} }
// If the mouse is in the widget's area at the time that it is being show(widget);
// created the widget can receive a hover event before it is fully
// initialized, in which case view() will return 0.
QGraphicsView *parentView = viewFor(widget);
if (parentView) {
show(widget);
}
break; break;
} }