reject position and matrix changes when locked

BUG:177596

svn path=/trunk/KDE/kdelibs/; revision=897433
This commit is contained in:
Aaron J. Seigo 2008-12-16 03:33:09 +00:00
parent bad9871ccf
commit 69364bc42e

View File

@ -1590,6 +1590,12 @@ QVariant Applet::itemChange(GraphicsItemChange change, const QVariant &value)
} }
} }
break; break;
case ItemPositionChange:
return immutability() == Mutable ? value : pos();
break;
case ItemTransformChange:
return immutability() == Mutable ? value : transform();
break;
case ItemPositionHasChanged: case ItemPositionHasChanged:
emit geometryChanged(); emit geometryChanged();
// fall through! // fall through!