revert "cleanup" breakage of r696698
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=728171
This commit is contained in:
parent
9fa9cb07eb
commit
245e63418e
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user