19 #include "easingcurve.h"
22 EasingCurve::EasingCurve(QObject *parent):
30 QEasingCurve::Type EasingCurve::type()
const
32 return m_easingCurve.type();
35 void EasingCurve::setType(
const QEasingCurve::Type &type)
37 m_easingCurve.setType(type);
41 qreal EasingCurve::period()
const
43 return m_easingCurve.period();
46 void EasingCurve::setPeriod(qreal period)
48 m_easingCurve.setPeriod(period);
49 Q_EMIT periodChanged();
52 qreal EasingCurve::progress()
const
57 void EasingCurve::setProgress(qreal progress)
59 if (m_progress != progress) {
60 m_progress = progress;
61 m_value = m_easingCurve.valueForProgress(m_progress);
62 Q_EMIT progressChanged();
66 qreal EasingCurve::value()
const