summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qdeclarativesmoothedfollow_p.h
Commit message (Collapse)AuthorAgeFilesLines
* QtDeclarative: remove spurious semi-colons from the source codeThiago Macieira2010-05-041-1/+1
|
* Add SmoothedFollow element to qmlLeonardo Sobral Cunha2010-04-081-0/+113
The SmoothedFollow is the same as the old EaseFollow, so it's not an animation, but its main use case is to be used as a property value source to automatically follow the 'to' property, as in the example below. Rectangle { color: "green" width: 60; height: 60; SmoothedFollow on x { to: rect1.x - 5; velocity: 200 } SmoothedFollow on y { to: rect1.y - 5; velocity: 200 } } This element shares the internal implementation with SmoothedAnimation, both providing the same easing function, but with SmoothedFollow it's easier to set a start value to animate intially and then start to follow, while SmoothedAnimation is still convenient for using inside Behaviors and Transitions. Reviewed-by: Michael Brasser