backport pressed state reset fix

svn path=/branches/KDE/4.4/kdelibs/; revision=1084840
This commit is contained in:
Marco Martin 2010-02-03 20:54:49 +00:00
parent d24d0eaeed
commit a4f2a6eb7f

View File

@ -1299,6 +1299,9 @@ void IconWidget::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
action->event(event->type(), event->pos());
}
// d->states &= ~IconWidgetPrivate::HoverState; // Will be set once progress is zero again ...
//if an eventfilter stolen the mousereleaseevent remove the pressed state here
d->states &= ~IconWidgetPrivate::PressedState;
d->hoverEffect(false);
update();