aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick2/qquickpositioners/data/horizontal-animated.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qtquick2/qquickpositioners/data/horizontal-animated.qml')
-rw-r--r--tests/auto/qtquick2/qquickpositioners/data/horizontal-animated.qml47
1 files changed, 47 insertions, 0 deletions
diff --git a/tests/auto/qtquick2/qquickpositioners/data/horizontal-animated.qml b/tests/auto/qtquick2/qquickpositioners/data/horizontal-animated.qml
new file mode 100644
index 0000000000..a88c26b66c
--- /dev/null
+++ b/tests/auto/qtquick2/qquickpositioners/data/horizontal-animated.qml
@@ -0,0 +1,47 @@
+import QtQuick 2.0
+
+Item {
+ width: 640
+ height: 480
+ property bool testRightToLeft: false
+ property bool testEnabled: false
+
+ Row {
+ objectName: "row"
+ layoutDirection: testRightToLeft ? Qt.RightToLeft : Qt.LeftToRight
+ add: Transition {
+ enabled: testEnabled ? false : true
+ NumberAnimation {
+ properties: "x";
+ }
+ }
+ move: Transition {
+ enabled: testEnabled ? false : true
+ NumberAnimation {
+ properties: "x";
+ }
+ }
+ Rectangle {
+ objectName: "one"
+ color: "red"
+ x: -100;
+ width: 50
+ height: 50
+ }
+ Rectangle {
+ objectName: "two"
+ color: "blue"
+ x: -100;
+ visible: false
+ width: 50
+ height: 50
+ }
+ Rectangle {
+ objectName: "three"
+ x: -100;
+ color: "green"
+ width: 50
+ height: 50
+ }
+ }
+}