need to map from the scene, since we may be rotated or otherwise transformed.

BUG:155372

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=759228
This commit is contained in:
Aaron J. Seigo 2008-01-10 08:21:37 +00:00
parent 8c7a064bf8
commit 45e31f3aee

View File

@ -807,7 +807,7 @@ bool Containment::sceneEventFilter(QGraphicsItem *watched, QEvent *event)
//kDebug() << "got hoverLeaveEvent";
if (d->handles.contains(applet)) {
QGraphicsSceneHoverEvent *he = static_cast<QGraphicsSceneHoverEvent *>(event);
if (!d->handles[applet]->boundingRect().contains(he->scenePos())) {
if (!d->handles[applet]->boundingRect().contains(d->handles[applet]->mapFromScene(he->scenePos()))) {
d->handles[applet]->startFading(AppletHandle::FadeOut);
}
}