mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Port away from QTimeLine::setCurveShape()
As recommended, we now set `easingCurve` directly.
This commit is contained in:
parent
1ded75ce44
commit
29b894dbba
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue