on xenial help sign in
add some comments to EasingCurve
commit011a915af6a632bf21da88c73ae1212bdb99c0db authorMichael Zanetti <michael.zanetti@canonical.com> dateThu 13 Mar 2014, 10:21 (13 years ago) parent5ab3d3b
1 file changed+11
plugins/Utils/easingcurve.h+11
plugins/Utils/easingcurve.h+11
@@ -22,6 +22,17 @@
2222#include <QObject>
2323#include <QEasingCurve>
2424
25+/**
26+ * @brief The EasingCurve class
27+ *
28+ * This class exposes the QEasingCurve C++ API to QML.
29+ * This is useful for user interactive animations. While the QML Animation types
30+ * all require a "from", "to" and "duration", this one is based on "period" and
31+ * "progress". So you can control the position of the aimation by changing the
32+ * progress, also going back and forward in the animation. Depending on the type
33+ * of the easing curve, value will return the transformed progress.
34+ */
35+
2536class EasingCurve: public QObject
2637{
2738 Q_OBJECT