equal
deleted
inserted
replaced
247 } |
247 } |
248 } |
248 } |
249 |
249 |
250 /*! |
250 /*! |
251 \qmlclass SmoothedAnimation QDeclarativeSmoothedAnimation |
251 \qmlclass SmoothedAnimation QDeclarativeSmoothedAnimation |
|
252 \ingroup qml-animation-transition |
252 \since 4.7 |
253 \since 4.7 |
253 \inherits NumberAnimation |
254 \inherits NumberAnimation |
254 \brief The SmoothedAnimation element allows a property to smoothly track a value. |
255 \brief The SmoothedAnimation element allows a property to smoothly track a value. |
255 |
256 |
256 A SmoothedAnimation animates a property's value to a set target value |
257 A SmoothedAnimation animates a property's value to a set target value |
285 set to a value such as 0.5 units/second. Animating from 0 to 1.0 with a velocity |
286 set to a value such as 0.5 units/second. Animating from 0 to 1.0 with a velocity |
286 of 0.5 will take 2000 ms to complete. |
287 of 0.5 will take 2000 ms to complete. |
287 |
288 |
288 Like any other animation element, a SmoothedAnimation can be applied in a |
289 Like any other animation element, a SmoothedAnimation can be applied in a |
289 number of ways, including transitions, behaviors and property value |
290 number of ways, including transitions, behaviors and property value |
290 sources. The \l PropertyAnimation documentation shows a variety of methods |
291 sources. The \l {QML Animation} documentation shows a variety of methods |
291 for creating animations. |
292 for creating animations. |
292 |
293 |
293 \sa SpringAnimation, NumberAnimation, {QML Animation}, {declarative/animation/basics}{Animation basics example} |
294 \sa SpringAnimation, NumberAnimation, {QML Animation}, {declarative/animation/basics}{Animation basics example} |
294 */ |
295 */ |
295 |
296 |
373 |
374 |
374 Possible values are: |
375 Possible values are: |
375 |
376 |
376 \list |
377 \list |
377 \o SmoothedAnimation.Eased (default) - the animation will smoothly decelerate, and then reverse direction |
378 \o SmoothedAnimation.Eased (default) - the animation will smoothly decelerate, and then reverse direction |
378 \o SmoothedAnimation.Immediate - the animation will immediately begin accelerating in the reverse direction, begining with a velocity of 0 |
379 \o SmoothedAnimation.Immediate - the animation will immediately begin accelerating in the reverse direction, beginning with a velocity of 0 |
379 \o SmoothedAnimation.Sync - the property is immediately set to the target value |
380 \o SmoothedAnimation.Sync - the property is immediately set to the target value |
380 \endlist |
381 \endlist |
381 */ |
382 */ |
382 QDeclarativeSmoothedAnimation::ReversingMode QDeclarativeSmoothedAnimation::reversingMode() const |
383 QDeclarativeSmoothedAnimation::ReversingMode QDeclarativeSmoothedAnimation::reversingMode() const |
383 { |
384 { |