Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Education
Marble
Commits
1a20dd19
Commit
1a20dd19
authored
Oct 28, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port deprecated method
parent
256078e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/lib/marble/MarblePhysics.cpp
src/lib/marble/MarblePhysics.cpp
+3
-3
No files found.
src/lib/marble/MarblePhysics.cpp
View file @
1a20dd19
...
...
@@ -42,7 +42,7 @@ public:
m_planetRadius
(
EARTH_RADIUS
)
{
m_timeline
.
setDuration
(
2000
);
m_timeline
.
set
CurveShape
(
QTimeLine
::
EaseInOutCurve
);
m_timeline
.
set
EasingCurve
(
QEasingCurve
::
InOutSine
);
}
qreal
suggestedRange
(
qreal
t
)
const
...
...
@@ -134,13 +134,13 @@ void MarblePhysics::flyTo( const GeoDataLookAt &target, FlyToMode mode )
return
;
case
Linear
:
d
->
m_timeline
.
setDuration
(
300
);
d
->
m_timeline
.
set
CurveShape
(
QTimeLine
::
Ease
OutCurve
);
d
->
m_timeline
.
set
EasingCurve
(
QEasingCurve
::
OutCurve
);
break
;
case
Jump
:
{
qreal
duration
=
invisible
?
2000
:
1000
;
d
->
m_timeline
.
setDuration
(
duration
);
d
->
m_timeline
.
set
CurveShape
(
QTimeLine
::
EaseInOutCurve
);
d
->
m_timeline
.
set
EasingCurve
(
QEasingCurve
::
InOutSine
);
}
break
;
case
Automatic
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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