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
3d0042e0
Commit
3d0042e0
authored
Sep 09, 2020
by
Vlad Zahorodnii
Browse files
effects/desktopgrid: Port away from deprecated QTimeline curve shape prop
QTimeline::CurveShape has been deprecated in Qt 5.15.
parent
426e7f91
Changes
1
Hide whitespace changes
Inline
Side-by-side
effects/desktopgrid/desktopgrid.cpp
View file @
3d0042e0
...
...
@@ -108,7 +108,7 @@ void DesktopGridEffect::reconfigure(ReconfigureFlags)
// TODO: rename zoomDuration to duration
zoomDuration
=
animationTime
(
DesktopGridConfig
::
zoomDuration
()
!=
0
?
DesktopGridConfig
::
zoomDuration
()
:
300
);
timeline
.
set
CurveShape
(
QTimeLine
::
Ease
InOut
Curv
e
);
timeline
.
set
EasingCurve
(
QEasingCurve
::
InOut
Sin
e
);
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
->
set
CurveShape
(
QTimeLine
::
Ease
InOut
Curv
e
);
newTimeline
->
set
EasingCurve
(
QEasingCurve
::
InOut
Sin
e
);
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
->
set
CurveShape
(
QTimeLine
::
Ease
InOut
Curv
e
);
newTimeline
->
set
EasingCurve
(
QEasingCurve
::
InOut
Sin
e
);
hoverTimeline
.
append
(
newTimeline
);
}
...
...
Vlad Zahorodnii
@vladz
mentioned in commit
1630ce05
·
Sep 21, 2020
mentioned in commit
1630ce05
mentioned in commit 1630ce053a617e17abf518bf8c7152012a43dc01
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