aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlbinding/data/restoreBinding5.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlbinding/data/restoreBinding5.qml')
-rw-r--r--tests/auto/qml/qqmlbinding/data/restoreBinding5.qml24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlbinding/data/restoreBinding5.qml b/tests/auto/qml/qqmlbinding/data/restoreBinding5.qml
new file mode 100644
index 0000000000..75926c3d6e
--- /dev/null
+++ b/tests/auto/qml/qqmlbinding/data/restoreBinding5.qml
@@ -0,0 +1,24 @@
+import QtQuick 2.0
+import test 1
+
+Rectangle {
+ width: 400
+ height: 400
+
+ WithBindableProperties {
+ id: myItem
+ objectName: "myItem"
+ a: 100 - myItem.b
+
+ Binding on a {
+ when: myItem.b > 50
+ value: myItem.b
+ }
+
+ /*NumberAnimation on y {
+ loops: Animation.Infinite
+ to: 100
+ duration: 1000
+ }*/
+ }
+}