forked from qt-creator/qt-creator
QmlDesigner: Disable componentComplete for primitive creation
Control are now in a qrc file and the component are registered as Qml types. We are using the primitive creation path in this case so we have to disable the componentComplete call. Change-Id: I52936b92d936acbfc21ba800ffca9123fcece864 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
committed by
Thomas Hartmann
parent
6f6f970afb
commit
a2c0b91ec5
@@ -1015,6 +1015,10 @@ QObject *ObjectNodeInstance::createCustomParserObject(const QString &nodeSource,
|
||||
|
||||
QObject *ObjectNodeInstance::createPrimitive(const QString &typeName, int majorNumber, int minorNumber, QQmlContext *context)
|
||||
{
|
||||
ComponentCompleteDisabler disableComponentComplete;
|
||||
|
||||
Q_UNUSED(disableComponentComplete)
|
||||
|
||||
QObject *object = 0;
|
||||
QQmlType *type = QQmlMetaType::qmlType(typeName.toUtf8(), majorNumber, minorNumber);
|
||||
if (type) {
|
||||
|
||||
Reference in New Issue
Block a user