aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlproperty/data/invalidBinding.qml
diff options
context:
space:
mode:
authorMatthew Vogt <matthew.vogt@nokia.com>2012-03-27 14:58:19 +1000
committerQt by Nokia <qt-info@nokia.com>2012-03-28 04:35:52 +0200
commit4d3ccce54a5e58bab878170b1552acd0d4a20cec (patch)
tree102740e5a9bc144a5dd1c9e8fb2483e6ed2b6b25 /tests/auto/qml/qqmlproperty/data/invalidBinding.qml
parent0ad4550ac0946540f2c76008765d69c62adeed54 (diff)
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>
Diffstat (limited to 'tests/auto/qml/qqmlproperty/data/invalidBinding.qml')
-rw-r--r--tests/auto/qml/qqmlproperty/data/invalidBinding.qml14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlproperty/data/invalidBinding.qml b/tests/auto/qml/qqmlproperty/data/invalidBinding.qml
new file mode 100644
index 0000000000..58e83070ee
--- /dev/null
+++ b/tests/auto/qml/qqmlproperty/data/invalidBinding.qml
@@ -0,0 +1,14 @@
+import QtQuick 2.0
+
+Item {
+ property Text text: myText
+
+ property Rectangle rectangle1: myText
+ property Rectangle rectangle2: getMyText()
+
+ function getMyText() { return myText; }
+
+ Text {
+ id: myText
+ }
+}