Commit 7ef1f9d1 authored by Marco Bubke's avatar Marco Bubke Committed by Thomas Hartmann
Browse files

QmlDesigner.NodeInstances: Deactivate componentComplete in VME



Change-Id: I18c80e0a6d3206ff863b0466d43375fdb64a6b80
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 4b00085a
......@@ -45,6 +45,7 @@ Qt5NodeInstanceServer::Qt5NodeInstanceServer(NodeInstanceClientInterface *nodeIn
{
addImportString("import QtQuick 2.0\n");
DesignerSupport::activateDesignerAnimationMode();
DesignerSupport::deactivateComponentComplete();
}
Qt5NodeInstanceServer::~Qt5NodeInstanceServer()
......
......@@ -448,13 +448,22 @@ void QuickItemNodeInstance::refresh()
repositioning(quickItem());
}
void QuickItemNodeInstance::doComponentComplete()
void doComponentCompleteRecursive(QQuickItem *item)
{
if (quickItem()) {
if (DesignerSupport::isComponentComplete(quickItem()))
if (item) {
if (DesignerSupport::isComponentComplete(item))
return;
static_cast<QQmlParserStatus*>(quickItem())->componentComplete();
foreach (QQuickItem *childItem, item->childItems())
doComponentCompleteRecursive(childItem);
static_cast<QQmlParserStatus*>(item)->componentComplete();
}
}
void QuickItemNodeInstance::doComponentComplete()
{
doComponentCompleteRecursive(quickItem());
quickItem()->update();
}
......
Supports Markdown
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