Skip to content
Snippets Groups Projects
Commit a58810ce authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner: Do componentComplete for QObjects with QmlParserStatus


Change-Id: If7ea6c55f4540a8bde113076288c0e9c6dd1210f
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent eab228dc
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
#include <QFileSystemWatcher> #include <QFileSystemWatcher>
#include <QPixmapCache> #include <QPixmapCache>
#include <QQuickItem> #include <QQuickItem>
#include <QQmlParserStatus>
#include <QTextDocument> #include <QTextDocument>
#include <QLibraryInfo> #include <QLibraryInfo>
...@@ -1252,7 +1252,9 @@ bool ObjectNodeInstance::resetStateProperty(const ObjectNodeInstance::Pointer &/ ...@@ -1252,7 +1252,9 @@ bool ObjectNodeInstance::resetStateProperty(const ObjectNodeInstance::Pointer &/
void ObjectNodeInstance::doComponentComplete() void ObjectNodeInstance::doComponentComplete()
{ {
QQmlParserStatus *qmlParserStatus = dynamic_cast< QQmlParserStatus*>(object());
if (qmlParserStatus)
qmlParserStatus->componentComplete();
} }
bool ObjectNodeInstance::isRootNodeInstance() const bool ObjectNodeInstance::isRootNodeInstance() const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment