on xenial help sign in
add some comments to EasingCurve
011a915Michael Zanetti
plugins/Utils/easingcurve.h+11
@@ -22,6 +22,17 @@
22#include <QObject>
22#include <QObject>
23#include <QEasingCurve>
23#include <QEasingCurve>
24
24
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+
25class EasingCurve: public QObject
36class EasingCurve: public QObject
26{
37{
27 Q_OBJECT
38 Q_OBJECT