summaryrefslogtreecommitdiffstats
path: root/examples/declarative/states
diff options
context:
space:
mode:
authorLeonardo Sobral Cunha <leo.cunha@nokia.com>2010-02-23 07:25:10 (GMT)
committerLeonardo Sobral Cunha <leo.cunha@nokia.com>2010-02-23 08:12:08 (GMT)
commit9701facad44f8e435f0efe6417ffb7d17d5712e7 (patch)
treeee76ea7b313078b4ec6753f28b9ea6bf153aadc2 /examples/declarative/states
parent0a7ca8efdd292f317d4c95a80485d9d51f14a694 (diff)
downloadQt-9701facad44f8e435f0efe6417ffb7d17d5712e7.zip
Qt-9701facad44f8e435f0efe6417ffb7d17d5712e7.tar.gz
Qt-9701facad44f8e435f0efe6417ffb7d17d5712e7.tar.bz2
Updates all qml examples/demos to use the easing curve value type syntax
Diffstat (limited to 'examples/declarative/states')
-rw-r--r--examples/declarative/states/transitions.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/declarative/states/transitions.qml b/examples/declarative/states/transitions.qml
index 48d5f60..8ad61ad 100644
--- a/examples/declarative/states/transitions.qml
+++ b/examples/declarative/states/transitions.qml
@@ -51,16 +51,16 @@ Rectangle {
// transitions define how the properties change.
transitions: [
// When transitioning to 'Position1' move x,y over a duration of 1 second,
- // with easeOutBounce easing function.
+ // with OutBounce easing function.
Transition {
from: "*"; to: "Position1"
- NumberAnimation { properties: "x,y"; easing: "easeOutBounce"; duration: 1000 }
+ NumberAnimation { properties: "x,y"; easing.type: "OutBounce"; duration: 1000 }
},
// When transitioning to 'Position2' move x,y over a duration of 2 seconds,
- // with easeInOutQuad easing function.
+ // with InOutQuad easing function.
Transition {
from: "*"; to: "Position2"
- NumberAnimation { properties: "x,y"; easing: "easeInOutQuad"; duration: 2000 }
+ NumberAnimation { properties: "x,y"; easing.type: "InOutQuad"; duration: 2000 }
},
// For any other state changes move x,y linearly over duration of 200ms.
Transition {