Fix failing tst_qqmlecmascript::deleteRootObjectDuringCreation unit test
authorSimon Hausmann <simon.hausmann@digia.com>
Wed, 29 May 2013 10:18:31 +0000 (12:18 +0200)
committerLars Knoll <lars.knoll@digia.com>
Wed, 29 May 2013 13:54:26 +0000 (15:54 +0200)
commitda79a51d955d701b458b410b80c2a7585f1333be
tree196f7fe4ef8b11fab1333cedbfd7f5d4a6e025b5
parent5998ab3d4d111a536eb44e74aa901aa103b0bfc3
Fix failing tst_qqmlecmascript::deleteRootObjectDuringCreation unit test

Respect the rootObjectInCreation flag in QQmlData. Centralize the checking code
for that through the places in the engine where it is checked, along with the
indestructible flag.

Change-Id: Ie977b34ac8d070f6dcd7bab11a95dd27ca25145e
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/qqmldata_p.h
src/qml/qml/v4/qv4mm.cpp
src/qml/qml/v8/qv8qobjectwrapper.cpp