From 1190f901cbcc62ab50c66bf0a7c41bfba923da7f Mon Sep 17 00:00:00 2001 From: Leonardo Sobral Cunha Date: Tue, 30 Mar 2010 16:31:26 +1000 Subject: Update QmlChanges for SmoothedAnimation --- src/declarative/QmlChanges.txt | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/src/declarative/QmlChanges.txt b/src/declarative/QmlChanges.txt index 847f1f5..c86bdc6 100644 --- a/src/declarative/QmlChanges.txt +++ b/src/declarative/QmlChanges.txt @@ -32,6 +32,39 @@ syntax has been introduced: Item { Behavior on x {}; NumberAnimation on y {} } Only the syntax has changed, the behavior is identical. + +EaseFollow changed to SmoothedAnimation +--------------------------------------- +EaseFollow was renamed to SmoothedAnimation and now it inherits from +NumberAnimaton and as a consequence SmoothedAnimation can be used inside +Behaviors, as PropertySourceValues or in state transitions, like any other animation. + +The old EaseFollow properties changed to comply with the other declarative +animations ('source' changed to 'to'), so now 'to' changes are not +automatically 'followed' anymore. + +If you want to follow an hypothetical rect1, you should do now: + +     Rectangle { +         color: "green" +         width: 60; height: 60; +         x: rect1.x - 5; y: rect1.y - 5; +         Behavior on x { SmoothedAnimation { velocity: 200 } } +         Behavior on y { SmoothedAnimation { velocity: 200 } } +     } + +instead of the old automatic source changed tracking: + +     Rectangle { +         color: "green" +         width: 60; height: 60; +         EaseFollow on x { source: rect1.x - 5; velocity: 200 } +         EaseFollow on y { source: rect1.y - 5; velocity: 200 } +    } + +This is a syntax and behavior change. + + Script element removed ---------------------- Inline Script{} blocks have been deprecated, and will soon be removed entirely. -- cgit v0.12