aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlbinding/data/bindToQMLComponent.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlbinding/data/bindToQMLComponent.qml')
-rw-r--r--tests/auto/qml/qqmlbinding/data/bindToQMLComponent.qml12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlbinding/data/bindToQMLComponent.qml b/tests/auto/qml/qqmlbinding/data/bindToQMLComponent.qml
new file mode 100644
index 0000000000..471db9023b
--- /dev/null
+++ b/tests/auto/qml/qqmlbinding/data/bindToQMLComponent.qml
@@ -0,0 +1,12 @@
+import QtQuick 2.0
+
+Item {
+ id: root
+ property MyComponent myProperty
+ Binding {
+ target: root
+ property: "myProperty"
+ value: myObject
+ }
+ MyComponent { id: myObject }
+}