Commit dce26fc2 authored by Tim Jenssen's avatar Tim Jenssen

QmlDesigner: use engine argument like all similar methods

Change-Id: I1238cbd60e38ade3f54937ca8f901517c543a3ad
Reviewed-by: default avatarThomas Hartmann <>
parent 0ecc1114
......@@ -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());
Markdown is supported
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