-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathPageMainView.qml
56 lines (41 loc) · 964 Bytes
/
PageMainView.qml
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
56
import QtQuick 2.0
import "."
MainView {
id: app
default property alias data: pageStack.data
property alias background: background.children
property alias navbarSize: navbar.size
Item {
id: background
anchors.fill: parent
}
property alias navbarColor: navbar.background
NavigationBar {
id: navbar
}
property alias pageStack: pageStack
property Page initialPage
function push(page) {
pageStack.push(page)
}
function pop(page) {
pageStack.pop()
}
Component.onCompleted: {
if (initialPage)
pageStack.push(initialPage)
}
PageStack {
id: pageStack
anchors {
left: parent.left
right: parent.right
top: navbar.bottom
bottom: parent.bottom
}
}
property Notification notification: notification
Notification {
id: notification
}
}