forked from qt-creator/qt-creator
QmlDesigner: use engine argument like all similar methods
Change-Id: I1238cbd60e38ade3f54937ca8f901517c543a3ad Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
@@ -1105,9 +1105,9 @@ static bool isCrashingType(QQmlType *type)
|
||||
return false;
|
||||
}
|
||||
|
||||
static QObject *createDummyWindow(QQmlContext *context)
|
||||
static QObject *createDummyWindow(QQmlEngine *engine)
|
||||
{
|
||||
QQmlComponent component(context->engine(), QUrl(QStringLiteral("qrc:/qtquickplugin/mockfiles/Window.qml")));
|
||||
QQmlComponent component(engine, QUrl(QStringLiteral("qrc:/qtquickplugin/mockfiles/Window.qml")));
|
||||
return component.create();
|
||||
}
|
||||
|
||||
@@ -1145,7 +1145,7 @@ QObject *ObjectNodeInstance::createPrimitive(const QString &typeName, int majorN
|
||||
|
||||
if (isWindow(object)) {
|
||||
delete object;
|
||||
object = createDummyWindow(context);
|
||||
object = createDummyWindow(context->engine());
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user