allow to move applets in qgraphicslayouts, even when they're locked

svn path=/trunk/KDE/kdelibs/; revision=1139186
This commit is contained in:
Marco Martin 2010-06-17 15:32:05 +00:00
parent 3c2d443b51
commit fa26a2ddc6

View File

@ -2413,7 +2413,7 @@ QVariant Applet::itemChange(GraphicsItemChange change, const QVariant &value)
}
break;
case ItemPositionChange:
return (immutability() == Mutable || isContainment() || formFactor() == Horizontal || formFactor() == Vertical) ? value : pos();
return (immutability() == Mutable || isContainment() || formFactor() == Horizontal || formFactor() == Vertical || (parentLayoutItem() && parentLayoutItem()->isLayout())) ? value : pos();
break;
case ItemTransformChange:
return immutability() == Mutable ? value : transform();