Do not execute overwritten bindings
authorMatthew Vogt <matthew.vogt@nokia.com>
Tue, 20 Mar 2012 23:17:25 +0000 (09:17 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 4 Apr 2012 05:15:44 +0000 (07:15 +0200)
commit639208cc7f3ab3d8356363559e8fcf168e32cf0b
tree63e301bd3be9c67579054215f5d8a0e5a0c77943
parent912c25633ede945fb9b64e09ecd9309e7cc2ac3c
Do not execute overwritten bindings

During the construction of an object, internal bindings can be
overwritten by the initialization of objects with outer scope.

To yield the expected result, suppress the evaluation of inner
bindings that are overwritten by outer bindings, during the
completion phase of object creation.

Task-number: QTBUG-23138
Change-Id: I679309543a9b64c774bb99798ad5ccf518726d10
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Reviewed-by: J-P Nurmi <j-p.nurmi@nokia.com>
src/qml/qml/qqmlvme.cpp
tests/auto/qml/qquickbinding/data/InnerObject.qml [new file with mode: 0644]
tests/auto/qml/qquickbinding/data/OuterObject.qml [new file with mode: 0644]
tests/auto/qml/qquickbinding/data/replaceBinding.qml [new file with mode: 0644]
tests/auto/qml/qquickbinding/tst_qquickbinding.cpp