From 02552f26e4e274c50d3466cce86d9038b9f687c7 Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Thu, 28 Jul 2011 20:21:58 +1000 Subject: [PATCH] Augment SpringAnimation::damping documentation Task-number: QTBUG-20120 Change-Id: Ifaa0e7eaa0f61052680338a6cfd35bb6aca63157 Reviewed-on: http://codereview.qt.nokia.com/2333 Reviewed-by: Qt Sanity Bot Reviewed-by: Martin Jones --- src/qtquick1/util/qdeclarativespringanimation.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/qtquick1/util/qdeclarativespringanimation.cpp b/src/qtquick1/util/qdeclarativespringanimation.cpp index 6d950c8..d6dd68c 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 { -- 2.7.4