in horizontal and vertical form factors let the applets move even if

locked, otherwise the containment layout would be broken
(perhaps would be better to check for a qgraphicslinearlayout or
gridlayout parent? both solutions seems not too good)
BUG:178211

svn path=/trunk/KDE/kdelibs/; revision=901826
This commit is contained in:
Marco Martin 2008-12-26 18:37:57 +00:00
parent dc76999e7e
commit e3f1b2fda8

View File

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