Commit 1986a3c6 authored by Kai Koehne's avatar Kai Koehne
Browse files

QmlDesigner: Fix crash on loading

QDeclarative types are all 4.7 now.
parent f7ca9efb
......@@ -179,7 +179,7 @@ QObject *NodeMetaInfo::createInstance(QDeclarativeContext *context) const
object = component.create(context);
} else {
// primitive
object = QDeclarativeMetaType::qmlType(typeName().toAscii(), 4, 6)->create();
object = QDeclarativeMetaType::qmlType(typeName().toAscii(), minorVersion(), majorVersion())->create();
if (object && context)
QDeclarativeEngine::setContextForObject(object, context);
}
......
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