-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathNavigationMapHelperScreen.qml
More file actions
55 lines (47 loc) · 1.26 KB
/
NavigationMapHelperScreen.qml
File metadata and controls
55 lines (47 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import QtQuick 2.9
import QtLocation 5.6
import QtQml 2.3
import QtQuick.Controls 2.5
import QtGraphicalEffects 1.0
import QtPositioning 5.6
Rectangle{
property bool runMenuAnimation: false
color: "black"
visible: true
clip: true
// Main stack view of application
StackView{
id: mainApplicationStackView
anchors.fill: parent
// Sliding in animation
pushEnter: Transition {
NumberAnimation {
properties: "x"
from: mainApplicationStackView.width
to: 0
duration: 1000 // Milliseconds for push animation
easing.type: Easing.InOutQuad
}
}
// Sliding out animation
pushExit: Transition {
NumberAnimation {
properties: "x"
from: 0
to: -mainApplicationStackView.width
duration: 1000 // Milliseconds for push animation
easing.type: Easing.InOutQuad
}
}
}
// Map Page
NavigationMapScreen {
id: pageMap
enableGradient: true
visible: false
}
Component.onCompleted: {
mainApplicationStackView.push(pageMap)
pageMap.startAnimation()
}
}