Commit 1630ce05 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

effects/desktopgrid: Port away from deprecated QTimeline curve shape prop

QTimeline::CurveShape has been deprecated in Qt 5.15.


(cherry picked from commit 3d0042e0)
parent fc5a553e
......@@ -108,7 +108,7 @@ void DesktopGridEffect::reconfigure(ReconfigureFlags)
// TODO: rename zoomDuration to duration
zoomDuration = animationTime(DesktopGridConfig::zoomDuration() != 0 ? DesktopGridConfig::zoomDuration() : 300);
timeline.setCurveShape(QTimeLine::EaseInOutCurve);
timeline.setEasingCurve(QEasingCurve::InOutSine);
timeline.setDuration(zoomDuration);
border = DesktopGridConfig::borderWidth();
......@@ -1046,7 +1046,7 @@ void DesktopGridEffect::setup()
hoverTimeline.clear();
for (int i = 0; i < effects->numberOfDesktops(); i++) {
QTimeLine *newTimeline = new QTimeLine(zoomDuration, this);
newTimeline->setCurveShape(QTimeLine::EaseInOutCurve);
newTimeline->setEasingCurve(QEasingCurve::InOutSine);
hoverTimeline.append(newTimeline);
}
hoverTimeline[effects->currentDesktop() - 1]->setCurrentTime(hoverTimeline[effects->currentDesktop() - 1]->duration());
......@@ -1282,7 +1282,7 @@ void DesktopGridEffect::desktopsAdded(int old)
for (int i = old; i <= effects->numberOfDesktops(); i++) {
// add a timeline for the new desktop
QTimeLine *newTimeline = new QTimeLine(zoomDuration, this);
newTimeline->setCurveShape(QTimeLine::EaseInOutCurve);
newTimeline->setEasingCurve(QEasingCurve::InOutSine);
hoverTimeline.append(newTimeline);
}
......
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