diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-02-22 04:12:24 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-02-22 04:12:24 (GMT) |
commit | 2ca7a8827c748c7ec5b60d0ebe1f8de27d58a693 (patch) | |
tree | 380f0631d06ac2dfe9be6e4cc66f0d5b563e0b7f /src/declarative | |
parent | 819e64d946ddc03ef58375bbf19a3a9ddc35dd4d (diff) | |
download | Qt-2ca7a8827c748c7ec5b60d0ebe1f8de27d58a693.zip Qt-2ca7a8827c748c7ec5b60d0ebe1f8de27d58a693.tar.gz Qt-2ca7a8827c748c7ec5b60d0ebe1f8de27d58a693.tar.bz2 |
Document the default velocity of EaseFollow
Task-number: QTBUG-8181
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/util/qmleasefollow.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/declarative/util/qmleasefollow.cpp b/src/declarative/util/qmleasefollow.cpp index efa6faf..deb474a 100644 --- a/src/declarative/util/qmleasefollow.cpp +++ b/src/declarative/util/qmleasefollow.cpp @@ -300,6 +300,13 @@ Rectangle { } \endcode + The default velocity of EaseFollow is 200 units/second. Note that if the range of the + value being animated is small, then the velocity will need to be adjusted + appropriately. For example, the opacity of an item ranges from 0 - 1.0. + To enable a smooth animation in this range the velocity will need to be + set to a value such as 0.5 units/second. Animating from 0 to 1.0 with a velocity + of 0.5 will take 2000 ms to complete. + \sa SpringFollow */ @@ -415,7 +422,7 @@ void QmlEaseFollow::setSourceValue(qreal s) This property holds the animation duration used when tracking the source. - Setting this to -1 disables the duration value. + Setting this to -1 (the default) disables the duration value. */ qreal QmlEaseFollow::duration() const { @@ -449,6 +456,8 @@ qreal QmlEaseFollow::velocity() const This property holds the average velocity allowed when tracking the source. + The default velocity of EaseFollow is 200 units/second. + Setting this to -1 disables the velocity value. */ void QmlEaseFollow::setVelocity(qreal v) |