@@ -18,6 +18,7 @@
19#include "easingcurve.h"
19#include "easingcurve.h"
22EasingCurve::EasingCurve(QObject *parent):
23EasingCurve::EasingCurve(QObject *parent):
23 QObject(parent)
24 QObject(parent)
@@ -32,7 +33,11 @@ QEasingCurve::Type EasingCurve::type() const
33void EasingCurve::setType(const QEasingCurve::Type &type)
34void EasingCurve::setType(const QEasingCurve::Type &type)
36+ // FIXME: Working around bug https://bugreports.qt-project.org/browse/QTBUG-38686 here
37+ QEasingCurve newCurve;
35− m_easingCurve.setType(type);
38+ newCurve.setType(type);
39+ newCurve.setPeriod(m_easingCurve.period());
40+ m_easingCurve = newCurve;
36 Q_EMIT typeChanged();
41 Q_EMIT typeChanged();