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:
parent
8c7a064bf8
commit
45e31f3aee
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user