forked from qt-creator/qt-creator
QmlDesinger.NodeInstances: Set version number
This commit is contained in:
@@ -744,6 +744,8 @@ QObject *createComponent(const QString &componentPath, QDeclarativeContext *cont
|
||||
tweakObjects(object);
|
||||
component.completeCreate();
|
||||
|
||||
Q_ASSERT(QDeclarativeEngine::contextForObject(object));
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
@@ -768,6 +770,8 @@ QObject *createPrimitive(const QString &typeName, int majorNumber, int minorNumb
|
||||
if (object && context)
|
||||
QDeclarativeEngine::setContextForObject(object, context);
|
||||
|
||||
Q_ASSERT(QDeclarativeEngine::contextForObject(object));
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
|
@@ -52,6 +52,7 @@ int main(int argc, char *argv[])
|
||||
QCoreApplication::setOrganizationName("Nokia");
|
||||
QCoreApplication::setOrganizationDomain("nokia.com");
|
||||
QCoreApplication::setApplicationName("QmlPuppet");
|
||||
QCoreApplication::setApplicationVersion("1.0.0");
|
||||
|
||||
#ifdef ENABLE_QT_BREAKPAD
|
||||
QtSystemExceptionHandler systemExceptionHandler;
|
||||
|
Reference in New Issue
Block a user