Warn on incompatible v4 binding object type
authorMatthew Vogt <matthew.vogt@nokia.com>
Tue, 27 Mar 2012 04:58:19 +0000 (14:58 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 28 Mar 2012 02:35:52 +0000 (04:35 +0200)
commit4d3ccce54a5e58bab878170b1552acd0d4a20cec
tree102740e5a9bc144a5dd1c9e8fb2483e6ed2b6b25
parent0ad4550ac0946540f2c76008765d69c62adeed54
Warn on incompatible v4 binding object type

For QObject-derived properties, verify that the type of the source
object is convertible to the type of the target object, and report
an error for incompatible assignment attempts.

Task-number: QTBUG-24986
Change-Id: Ieece29a017222e48351cd433c1b2f9e2d93a5fd7
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/qml/qml/qqmlproperty.cpp
src/qml/qml/v4/qv4bindings.cpp
tests/auto/qml/qqmlproperty/data/invalidBinding.qml [new file with mode: 0644]
tests/auto/qml/qqmlproperty/tst_qqmlproperty.cpp