From f0ea5031fb11011dfc7563abf187fe4dd641a6e1 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Wed, 5 May 2010 17:48:44 +0000 Subject: [PATCH] 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 --- tooltipmanager.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tooltipmanager.cpp b/tooltipmanager.cpp index 6fbcb4242..023e748c1 100644 --- a/tooltipmanager.cpp +++ b/tooltipmanager.cpp @@ -432,14 +432,7 @@ bool ToolTipManager::eventFilter(QObject *watched, QEvent *event) break; } - // If the mouse is in the widget's area at the time that it is being - // 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); - } - + show(widget); break; }