Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
99dd5d94
Commit
99dd5d94
authored
Sep 09, 2020
by
Vlad Zahorodnii
Browse files
effects/cubeslide: Port away from deprecated QTimeline curve shape prop
QTimeline::CurveShape has been deprecated in Qt 5.15.
parent
3d0042e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
effects/cubeslide/cubeslide.cpp
View file @
99dd5d94
...
...
@@ -57,7 +57,7 @@ void CubeSlideEffect::reconfigure(ReconfigureFlags)
CubeSlideConfig
::
self
()
->
read
();
// TODO: rename rotationDuration to duration
rotationDuration
=
animationTime
(
CubeSlideConfig
::
rotationDuration
()
!=
0
?
CubeSlideConfig
::
rotationDuration
()
:
500
);
timeLine
.
set
CurveShape
(
QTimeLine
::
Ease
InOut
Curv
e
);
timeLine
.
set
EasingCurve
(
QEasingCurve
::
InOut
Sin
e
);
timeLine
.
setDuration
(
rotationDuration
);
dontSlidePanels
=
CubeSlideConfig
::
dontSlidePanels
();
dontSlideStickyWindows
=
CubeSlideConfig
::
dontSlideStickyWindows
();
...
...
@@ -367,9 +367,9 @@ void CubeSlideEffect::postPaintScreen()
}
timeLine
.
setCurrentTime
(
0
);
if
(
slideRotations
.
count
()
==
1
)
timeLine
.
set
CurveShape
(
QTimeLine
::
EaseOutCurv
e
);
timeLine
.
set
EasingCurve
(
QEasingCurve
::
OutSin
e
);
else
timeLine
.
set
CurveShape
(
QTimeLin
e
::
Linear
Curve
);
timeLine
.
set
EasingCurve
(
QEasingCurv
e
::
Linear
);
if
(
slideRotations
.
empty
())
{
for
(
EffectWindow
*
w
:
staticWindows
)
{
w
->
setData
(
WindowForceBlurRole
,
QVariant
());
...
...
@@ -500,9 +500,9 @@ void CubeSlideEffect::startAnimation() {
}
}
if
(
slideRotations
.
count
()
==
1
)
{
timeLine
.
set
CurveShape
(
QTimeLine
::
Ease
InOut
Curv
e
);
timeLine
.
set
EasingCurve
(
QEasingCurve
::
InOut
Sin
e
);
}
else
{
timeLine
.
set
CurveShape
(
QTimeLine
::
EaseInCurv
e
);
timeLine
.
set
EasingCurve
(
QEasingCurve
::
InSin
e
);
}
effects
->
setActiveFullScreenEffect
(
this
);
timeLine
.
setCurrentTime
(
0
);
...
...
Vlad Zahorodnii
@vladz
mentioned in commit
6046a673
·
Sep 21, 2020
mentioned in commit
6046a673
mentioned in commit 6046a673968ba9b3e5a8c470b5b555479dc991ec
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment