Commit b92821c6 authored by Marco Bubke's avatar Marco Bubke Committed by Kai Koehne

Fix clipping for children

Task-ID: BAUHAUS-501
parent a82d88df
......@@ -74,6 +74,8 @@ void FormEditorItem::setup()
setOpacity(qmlItemNode().instanceValue("opacity").toDouble());
}
setFlag(QGraphicsItem::ItemClipsChildrenToShape, qmlItemNode().instanceValue("clip").toBool());
if (QGraphicsItem::parentItem() == scene()->formLayerItem())
m_borderWidth = 0.0;
......
......@@ -165,6 +165,9 @@ void FormEditorScene::synchronizeOtherProperty(const QmlItemNode &qmlItemNode, c
if (propertyName == "opacity")
item->setOpacity(qmlItemNode.instanceValue("opacity").toDouble());
if (propertyName == "clip")
item->setFlag(QGraphicsItem::ItemClipsChildrenToShape, qmlItemNode.instanceValue("clip").toBool());
if (item)
item->update();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment