QmlDesigner: Call all Component complete handlers

We have to ensure to properly call all Component complete handlers.
A single component usually has QQmlComponentAttached objects,
which we have to iterate over.

Therefore emitComponentCompleteSignalForAttachedProperty() is not correct.

Task-number: QDS-269
Change-Id: I4aed5d511f9f6e21f72efb955fc6db21b70e7c42
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2018-10-18 15:45:04 +02:00
committed by Tim Jenssen
parent 673a115703
commit 7bff611ee1
3 changed files with 24 additions and 1 deletions
@@ -195,7 +195,7 @@ void QuickItemNodeInstance::doComponentComplete()
QmlPrivateGate::disableTextCursor(quickItem());
DesignerSupport::emitComponentCompleteSignalForAttachedProperty(quickItem());
QmlPrivateGate::emitComponentComplete(quickItem());
QQmlProperty contentItemProperty(quickItem(), "contentItem", engine());
if (contentItemProperty.isValid())