19 #include "easingcurve.h"
22 EasingCurve::EasingCurve(QObject *parent):
28 QEasingCurve::Type EasingCurve::type()
const
30 return m_easingCurve.type();
33 void EasingCurve::setType(
const QEasingCurve::Type &type)
35 m_easingCurve.setType(type);
39 qreal EasingCurve::period()
const
41 return m_easingCurve.period();
44 void EasingCurve::setPeriod(qreal period)
46 m_easingCurve.setPeriod(period);
47 Q_EMIT periodChanged();
50 qreal EasingCurve::progress()
const
55 void EasingCurve::setProgress(qreal progress)
57 if (m_progress != progress) {
58 m_progress = progress;
59 m_value = m_easingCurve.valueForProgress(m_progress);
60 Q_EMIT progressChanged();
64 qreal EasingCurve::value()
const