aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlproperty/data/aliasPropertyBindings.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlproperty/data/aliasPropertyBindings.qml')
-rw-r--r--tests/auto/qml/qqmlproperty/data/aliasPropertyBindings.qml19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlproperty/data/aliasPropertyBindings.qml b/tests/auto/qml/qqmlproperty/data/aliasPropertyBindings.qml
new file mode 100644
index 0000000000..f101f38a2d
--- /dev/null
+++ b/tests/auto/qml/qqmlproperty/data/aliasPropertyBindings.qml
@@ -0,0 +1,19 @@
+import QtQuick 2.0
+
+Item {
+ id: root
+
+ property real test: 9
+ property real test2: 3
+
+ property real realProperty: test * test + test
+ property alias aliasProperty: root.realProperty
+
+ states: State {
+ name: "switch"
+ PropertyChanges {
+ target: root
+ aliasProperty: 32 * test2
+ }
+ }
+}