revert "cleanup" breakage of r696698

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=728171
This commit is contained in:
Stephan Binner 2007-10-22 16:16:30 +00:00
parent 9fa9cb07eb
commit 245e63418e

View File

@ -939,8 +939,11 @@ void Icon::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
break;
}
}
} else {
d->state = Private::NoState;
}
else if (was == Private::PressedState) {
if (was == Private::PressedState) {
emit pressed(false);
if (inside) {
@ -948,9 +951,6 @@ void Icon::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
}
d->state = Private::NoState;
}
else {
d->state = Private::NoState;
}
QGraphicsItem::mouseReleaseEvent(event);
update();