-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.qml
41 lines (35 loc) · 986 Bytes
/
main.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
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Controls.Material 2.2
ApplicationWindow {
visible: true
width: 380
height: 640
title: qsTr("TLR")
header: ToolBar {
Material.primary: Material.Pink
contentHeight: toolButton.implicitHeight
visible: stackView.depth > 1 && stackView.currentItem.title !== "Tutorial"
ToolButton {
id: toolButton
text: "\u25C0"
font.pixelSize: Qt.application.font.pixelSize * 1.6
onClicked: {
if (stackView.depth > 1) {
stackView.pop()
}
}
}
Label {
text: stackView.currentItem.title
anchors.centerIn: parent
}
}
StackView {
id: stackView
initialItem: "Swipe.ui.qml"
anchors.fill: parent
property int tutorialIndex: 1
}
Component.onCompleted: stackView.push("Tutorial.ui.qml")
}