Core/TextEditor: Replace QTimeline::setCurveShape

... by setEasingCurve().

Deprecation for 5.15.1/removal in 6 is looming.

Task-number: QTCREATORBUG-24098
Change-Id: Ic116cf78b8468f03f6b01e0b7af56584289589cc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2020-07-16 11:48:35 +02:00
parent babc1006f2
commit d3d683ec63
2 changed files with 2 additions and 2 deletions

View File

@@ -6521,7 +6521,7 @@ TextEditorAnimator::TextEditorAnimator(QObject *parent)
: QObject(parent), m_timeline(256)
{
m_value = 0;
m_timeline.setCurveShape(QTimeLine::SineCurve);
m_timeline.setEasingCurve(QEasingCurve::SineCurve);
connect(&m_timeline, &QTimeLine::valueChanged, this, &TextEditorAnimator::step);
connect(&m_timeline, &QTimeLine::finished, this, &QObject::deleteLater);
m_timeline.start();