Commit 29b894db authored by Elvis Angelaccio's avatar Elvis Angelaccio

Port away from QTimeLine::setCurveShape()

As recommended, we now set `easingCurve` directly.
parent 1ded75ce
......@@ -25,7 +25,7 @@ PixmapViewer::PixmapViewer(QWidget* parent, Transition transition) :
setMinimumHeight(KIconLoader::SizeEnormous);
m_animation.setDuration(150);
m_animation.setCurveShape(QTimeLine::LinearCurve);
m_animation.setEasingCurve(QEasingCurve::Linear);
if (m_transition != NoTransition) {
connect(&m_animation, &QTimeLine::valueChanged, this, QOverload<>::of(&PixmapViewer::update));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment