Commit 97b3e98d authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner: Tab should be not movable anymore



Change-Id: I3a2e433157c65deb6ca85c8128046ce535ec59be
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 1cfca296
......@@ -389,16 +389,27 @@ bool QmlItemNode::instanceHasRotationTransform() const
return nodeInstance().transform().type() > QTransform::TxScale;
}
bool itemIsMovable(const ModelNode &modelNode)
{
if (modelNode.metaInfo().isSubclassOf("QtQuick.Controls.Tab", -1, -1))
return false;
return true;
}
bool QmlItemNode::modelIsMovable() const
{
return !modelNode().hasBindingProperty("x")
&& !modelNode().hasBindingProperty("y");
&& !modelNode().hasBindingProperty("y")
&& itemIsMovable(modelNode());
}
bool QmlItemNode::modelIsResizable() const
{
return !modelNode().hasBindingProperty("width")
&& !modelNode().hasBindingProperty("height");
&& !modelNode().hasBindingProperty("height")
&& itemIsMovable(modelNode());
}
QRectF QmlItemNode::instanceBoundingRect() const
......
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