Commit f7f85b79 authored by Marco Bubke's avatar Marco Bubke Committed by Thomas Hartmann

QmlDesigner: Fix root item is resizable and movalbe

Change-Id: I3e9e8d0ecd89040b01bcfabc8d6567411567e7e2
Reviewed-on: http://codereview.qt.nokia.com/910Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent 5ab3d58c
......@@ -294,6 +294,9 @@ void GraphicsObjectNodeInstance::paintUpdate()
bool GraphicsObjectNodeInstance::isMovable() const
{
if (isRootNodeInstance())
return false;
return m_isMovable && graphicsObject() && graphicsObject()->parentItem();
}
......
......@@ -204,6 +204,9 @@ void QmlGraphicsItemNodeInstance::doComponentComplete()
bool QmlGraphicsItemNodeInstance::isResizable() const
{
if (isRootNodeInstance())
return false;
return m_isResizable && qmlGraphicsItem() && qmlGraphicsItem()->parentItem();
}
......
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