Fix value-type semantics in variant properties
authorChris Adams <christopher.adams@nokia.com>
Thu, 19 Jul 2012 00:46:35 +0000 (10:46 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 24 Jul 2012 02:04:33 +0000 (04:04 +0200)
commitcc688cc0cc4f5d4fc8f01411798872205df1d59c
tree7258f74e3769f598a0a22609c095a71d0d1c3fc5
parentec0ad9abc684604e7fbb9eb25899e95b58c0f7ad
Fix value-type semantics in variant properties

Previously, variant properties storing value-type values would be
treated as value-type-copy values rather than value-type-reference
values.  This caused inconsistency in behaviour with value-type
subproperty assignment.

Task-number: QTBUG-26562
Change-Id: I524ee06ab8e02bf9582c1a88f3317278199225e0
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/qml/qml/qqmlvaluetype_p.h
src/qml/qml/v8/qv8qobjectwrapper.cpp
src/qml/qml/v8/qv8valuetypewrapper.cpp
tests/auto/qml/qqmlvaluetypes/data/variant_write.1.qml [new file with mode: 0644]
tests/auto/qml/qqmlvaluetypes/data/variant_write.2.qml [new file with mode: 0644]
tests/auto/qml/qqmlvaluetypes/tst_qqmlvaluetypes.cpp