forked from qt-creator/qt-creator
QmlDesigner: Fix crash on loading
QDeclarative types are all 4.7 now.
This commit is contained in:
@@ -179,7 +179,7 @@ QObject *NodeMetaInfo::createInstance(QDeclarativeContext *context) const
|
|||||||
object = component.create(context);
|
object = component.create(context);
|
||||||
} else {
|
} else {
|
||||||
// primitive
|
// primitive
|
||||||
object = QDeclarativeMetaType::qmlType(typeName().toAscii(), 4, 6)->create();
|
object = QDeclarativeMetaType::qmlType(typeName().toAscii(), minorVersion(), majorVersion())->create();
|
||||||
if (object && context)
|
if (object && context)
|
||||||
QDeclarativeEngine::setContextForObject(object, context);
|
QDeclarativeEngine::setContextForObject(object, context);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user