Update var property to null on object deletion
authorMatthew Vogt <matthew.vogt@nokia.com>
Wed, 18 Jul 2012 00:16:12 +0000 (10:16 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 20 Jul 2012 03:35:13 +0000 (05:35 +0200)
commitfa3dcc0efb2696612bf9db54a7ed4e26a2cf4765
tree1a571292334edd0ea10fda559b8c84862a51b58b
parent9018c236c73884ea706ac1d04a306467454e6243
Update var property to null on object deletion

When a var property contains a pointer to a QObject-derived instance,
ensure that object deletion causes the property to be updated.

Task-number: QTBUG-26542
Change-Id: I67a59ffd7f09063328d45dc84889add55a5428e4
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/qml/qml/qqmlvmemetaobject.cpp
src/qml/qml/qqmlvmemetaobject_p.h
tests/auto/qml/qqmllanguage/data/objectDeletionNotify.1.qml [new file with mode: 0644]
tests/auto/qml/qqmllanguage/data/objectDeletionNotify.2.qml [new file with mode: 0644]
tests/auto/qml/qqmllanguage/data/objectDeletionNotify.3.qml [new file with mode: 0644]
tests/auto/qml/qqmllanguage/data/objectDeletionNotify.4.qml [new file with mode: 0644]
tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp