only emit pressed when the press event is inside the widget, don't know

why it got passed in the first place but caused kickoff to being
activated when clicking on the taskbar on some circumstances

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=822626
This commit is contained in:
Marco Martin 2008-06-20 20:48:49 +00:00
parent b79b52624e
commit 7d0889002c

View File

@ -1025,7 +1025,7 @@ void Icon::mousePressEvent(QGraphicsSceneMouseEvent *event)
} }
} }
if (!handled) { if (!handled && geometry().contains(event->pos())) {
emit pressed(true); emit pressed(true);
} }