diff options
Diffstat (limited to 'tests/auto/declarative/qmlgraphicspositioners/data/grid-animated.qml')
-rw-r--r-- | tests/auto/declarative/qmlgraphicspositioners/data/grid-animated.qml | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlgraphicspositioners/data/grid-animated.qml b/tests/auto/declarative/qmlgraphicspositioners/data/grid-animated.qml new file mode 100644 index 0000000..6b128ce --- /dev/null +++ b/tests/auto/declarative/qmlgraphicspositioners/data/grid-animated.qml @@ -0,0 +1,55 @@ +import Qt 4.6 + +Item { + width: 640 + height: 480 + Grid { + columns: 3 + add: Transition { + NumberAnimation { + matchProperties: "x,y"; from: -100 + } + } + remove: Transition { + NumberAnimation { + matchProperties: "x,y"; to: -100 + } + } + move: Transition { + NumberAnimation { + matchProperties: "x,y"; + } + } + Rectangle { + objectName: "one" + color: "red" + width: 50 + height: 50 + } + Rectangle { + objectName: "two" + opacity: 0 + color: "green" + width: 50 + height: 50 + } + Rectangle { + objectName: "three" + color: "blue" + width: 50 + height: 50 + } + Rectangle { + objectName: "four" + color: "cyan" + width: 50 + height: 50 + } + Rectangle { + objectName: "five" + color: "magenta" + width: 50 + height: 50 + } + } +} |