diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2011-07-28 20:21:58 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-07-29 02:47:11 +0200 |
commit | 02552f26e4e274c50d3466cce86d9038b9f687c7 (patch) | |
tree | ea6b430badc9347dca818a397e74e30d09b35e56 /src | |
parent | d4aeee0459255fc6d56fca0c4c572d2a026d2fc7 (diff) |
Augment SpringAnimation::damping documentation
Task-number: QTBUG-20120
Change-Id: Ifaa0e7eaa0f61052680338a6cfd35bb6aca63157
Reviewed-on: http://codereview.qt.nokia.com/2333
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/qtquick1/util/qdeclarativespringanimation.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/qtquick1/util/qdeclarativespringanimation.cpp b/src/qtquick1/util/qdeclarativespringanimation.cpp index 6d950c841b..d6dd68c4c6 100644 --- a/src/qtquick1/util/qdeclarativespringanimation.cpp +++ b/src/qtquick1/util/qdeclarativespringanimation.cpp @@ -325,11 +325,13 @@ void QDeclarative1SpringAnimation::setSpring(qreal spring) \qmlproperty real QtQuick1::SpringAnimation::damping This property holds the spring damping value. - This value describes how quickly the spring-like motion comes to rest. + This parameter can be used to tweak the spring behaviour by exerting a resisting force + (like friction). + The default value is 0. - The useful value range is 0 - 1.0. The lower the value, the faster it - comes to rest. + The useful value range is 0 - 1.0. The higher the value, the faster it + usually comes to rest. */ qreal QDeclarative1SpringAnimation::damping() const { |