allow to move applets in qgraphicslayouts, even when they're locked
svn path=/trunk/KDE/kdelibs/; revision=1139186
This commit is contained in:
parent
3c2d443b51
commit
fa26a2ddc6
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user