Fix QQmlProperty to work correctly with deeply nested objects.
authorMichael Brasser <mbrasser@ford.com>
Fri, 12 Dec 2014 03:18:00 +0000 (21:18 -0600)
committerMichael Brasser <michael.brasser@live.com>
Mon, 22 Dec 2014 23:58:51 +0000 (00:58 +0100)
commit5adb406bddd8419c2987cec48eb86a0d4ca0260a
tree266e29eba0739751809fd2fdfc85933c38c919de
parentfa3cf15e0577fe382ac577456422ad78325a3977
Fix QQmlProperty to work correctly with deeply nested objects.

Don't keep reusing the top-level object to look up nested properties.
This allows code such as the following to work correctly:

PropertyChanges {
    target: myObject
    textChild.font.pixelSize: 24
}

Change-Id: I39e52dbc20d2409fc756a36e668fcf664eb1905f
Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/qml/qqmlproperty.cpp
tests/auto/qml/qqmlproperty/tst_qqmlproperty.cpp