summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-03-14 23:52:03 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-03-14 23:52:03 (GMT)
commita89d15916c4b5d01b01eb932ccaaead43cd75d08 (patch)
tree88c0e9cc88e1c13f6e602bff0596396679eebfbe
parentd5008095e7c35bda927f0c41aa4545ddbbcc52b9 (diff)
downloadQt-a89d15916c4b5d01b01eb932ccaaead43cd75d08.zip
Qt-a89d15916c4b5d01b01eb932ccaaead43cd75d08.tar.gz
Qt-a89d15916c4b5d01b01eb932ccaaead43cd75d08.tar.bz2
Make easing docs more consistent with other grouped property docs.
-rw-r--r--src/declarative/util/qdeclarativeanimation.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/declarative/util/qdeclarativeanimation.cpp b/src/declarative/util/qdeclarativeanimation.cpp
index 652d359..009e07f 100644
--- a/src/declarative/util/qdeclarativeanimation.cpp
+++ b/src/declarative/util/qdeclarativeanimation.cpp
@@ -1877,10 +1877,14 @@ void QDeclarativePropertyAnimation::setTo(const QVariant &t)
}
/*!
- \qmlproperty QEasingCurve PropertyAnimation::easing
- \brief the easing curve used for the transition.
-
- For the easing you can specify the following parameters: type, amplitude, period and overshoot.
+ \qmlproperty enum PropertyAnimation::easing.type
+ \qmlproperty real PropertyAnimation::easing.amplitude
+ \qmlproperty real PropertyAnimation::easing.overshoot
+ \qmlproperty real PropertyAnimation::easing.period
+ \brief the easing curve used for the animation.
+
+ To specify an easing curve you need to specify at least the type. For some curves you can also specify
+ amplitude, period and/or overshoot (more details provided after the table).
\qml
PropertyAnimation { properties: "y"; easing.type: "InOutElastic"; easing.amplitude: 2.0; easing.period: 1.5 }