diff options
Diffstat (limited to 'tests/auto/declarative/qdeclarativepositioners/data/horizontal-animated.qml')
-rw-r--r-- | tests/auto/declarative/qdeclarativepositioners/data/horizontal-animated.qml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativepositioners/data/horizontal-animated.qml b/tests/auto/declarative/qdeclarativepositioners/data/horizontal-animated.qml new file mode 100644 index 0000000000..3c95f53fe7 --- /dev/null +++ b/tests/auto/declarative/qdeclarativepositioners/data/horizontal-animated.qml @@ -0,0 +1,44 @@ +import QtQuick 1.1 + +Item { + width: 640 + height: 480 + property bool testRightToLeft: false + + Row { + objectName: "row" + layoutDirection: testRightToLeft ? Qt.RightToLeft : Qt.LeftToRight + add: Transition { + NumberAnimation { + properties: "x"; + } + } + move: Transition { + NumberAnimation { + properties: "x"; + } + } + Rectangle { + objectName: "one" + color: "red" + x: -100; + width: 50 + height: 50 + } + Rectangle { + objectName: "two" + color: "blue" + x: -100; + opacity: 0 + width: 50 + height: 50 + } + Rectangle { + objectName: "three" + x: -100; + color: "green" + width: 50 + height: 50 + } + } +} |