Fix QDeclarativeListProperty assignment
authorChris Adams <christopher.adams@nokia.com>
Thu, 8 Sep 2011 05:13:42 +0000 (15:13 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 19 Sep 2011 05:31:00 +0000 (07:31 +0200)
commit85554f7f262ff5aae15562b11c6d08bcc03c961f
tree42208f1b3ea9ea02ec482314d9a99fa1b701793c
parent1aa075b6319ded90d79dfe28605294283502bead
Fix QDeclarativeListProperty assignment

This commit ensures that a QDeclarativeListReference can be
assigned to another QDeclarativeListProperty, by retrieving
each element in the list reference and converting to the appropriate
type before appending to the target list property.

Task-number: QTBUG-16316
Change-Id: Id8858058f052a53bf43eadc085fd278654478d77
Reviewed-on: http://codereview.qt-project.org/4388
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
src/declarative/qml/qdeclarativeproperty.cpp
tests/auto/declarative/qdeclarativeecmascript/data/listAssignment.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp