]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Port away from QTimeLine::setCurveShape()
authorElvis Angelaccio <elvis.angelaccio@kde.org>
Wed, 14 Oct 2020 23:27:28 +0000 (01:27 +0200)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Wed, 14 Oct 2020 23:27:28 +0000 (01:27 +0200)
As recommended, we now set `easingCurve` directly.

src/panels/information/pixmapviewer.cpp

index ddf26498297e35919e7909acf49b2fe5ad18539d..ce84506dd964d942f4ae33ce627faacc1408313c 100644 (file)
@@ -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));