Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
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