diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2010-11-16 05:44:32 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2010-11-16 06:03:13 (GMT) |
commit | df1a50f6bd25c0955c7d8e4b6b89a7b7957b69f6 (patch) | |
tree | d8a72e5fafc4ec2b2331ee9288a94ebc6dedfdae /tests/auto/declarative/qmlvisual/animation/easing/easing.qml | |
parent | 60436458bbde50b03e10f13d61625b0aef8fbf3d (diff) | |
download | Qt-df1a50f6bd25c0955c7d8e4b6b89a7b7957b69f6.zip Qt-df1a50f6bd25c0955c7d8e4b6b89a7b7957b69f6.tar.gz Qt-df1a50f6bd25c0955c7d8e4b6b89a7b7957b69f6.tar.bz2 |
Update qml visual tests
Added guidelines for size, and shrunk tests that exceeded them.
Also updated the visuals for all text tests now that antialiasing is off
Also some other minor cleanups.
Also had to update the visuals for all tests, due to the bug in
generating the test scripts being fixed (all need to be remade).
Task-number: QTBUG-14792
Diffstat (limited to 'tests/auto/declarative/qmlvisual/animation/easing/easing.qml')
-rw-r--r-- | tests/auto/declarative/qmlvisual/animation/easing/easing.qml | 21 |
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 } |