summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlvisual/animation/easing/easing.qml
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2010-11-29 06:39:31 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2010-11-29 06:39:31 (GMT)
commit4592fc2e481b42bbbe1f59e575ce3c9b9af9c9e4 (patch)
tree9adb0250ed390477e37741de97bede2bae148f7e /tests/auto/declarative/qmlvisual/animation/easing/easing.qml
parentf7d66442963e1380a4f2db3d24cb24aa9d5c63ad (diff)
parentbf5571b485420a945e9fdf3bf5b31cfe4c4d482b (diff)
downloadQt-4592fc2e481b42bbbe1f59e575ce3c9b9af9c9e4.zip
Qt-4592fc2e481b42bbbe1f59e575ce3c9b9af9c9e4.tar.gz
Qt-4592fc2e481b42bbbe1f59e575ce3c9b9af9c9e4.tar.bz2
Merge remote branch 'origin/master' into lighthouse-master
Diffstat (limited to 'tests/auto/declarative/qmlvisual/animation/easing/easing.qml')
-rw-r--r--tests/auto/declarative/qmlvisual/animation/easing/easing.qml21
1 files changed, 11 insertions, 10 deletions
diff --git a/tests/auto/declarative/qmlvisual/animation/easing/easing.qml b/tests/auto/declarative/qmlvisual/animation/easing/easing.qml
index 35b568a..625aeeb 100644
--- a/tests/auto/declarative/qmlvisual/animation/easing/easing.qml
+++ b/tests/auto/declarative/qmlvisual/animation/easing/easing.qml
@@ -1,9 +1,10 @@
import QtQuick 1.0
+/* This test just animates y of a block with every easing curve*/
Rectangle {
id: item
- width: 600
- height: layout.height
+ height: 300
+ width: layout.width
color: "white"
resources: [
ListModel {
@@ -133,10 +134,10 @@ Rectangle {
}
}
]
- Column {
+ Row {
id: layout
- anchors.left: item.left
- anchors.right: item.right
+ anchors.top: item.top
+ anchors.bottom: item.bottom
Repeater {
model: easingtypes
Component {
@@ -149,8 +150,8 @@ Rectangle {
color: index & 1 ? "black" : "white"
opacity: 0 // 1 for debugging
}
- width: 120
- height: 18
+ width: 15
+ height: 30
color: index & 1 ? "red" : "blue"
states: [
State {
@@ -158,7 +159,7 @@ Rectangle {
when: !mouse.pressed
PropertyChanges {
target: block
- x: 0
+ y: 0
}
},
State {
@@ -166,7 +167,7 @@ Rectangle {
when: mouse.pressed
PropertyChanges {
target: block
- x: item.width-block.width
+ y: item.height-block.height
}
}
]
@@ -176,7 +177,7 @@ Rectangle {
to: "to"
reversible: true
NumberAnimation {
- properties: "x"
+ properties: "y"
easing.type: type
duration: 1000
}