summaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
authorAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2019-09-18 16:31:32 +0700
committerAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2019-09-18 16:31:32 +0700
commit3b42ee7118b34996e7205154816b790e11bb15cb (patch)
tree714f0e46d8d45a790c3e7847a0907579a6f208a9 /main.qml
parent2978cc973965acf7c546f2aec28ddfd8bea5e5a7 (diff)
change `stackView` to `contentView`
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/main.qml b/main.qml
index 01afedd..b4632e1 100644
--- a/main.qml
+++ b/main.qml
@@ -25,8 +25,8 @@ ApplicationWindow {
icon.source: "components/icons/menu-24px.svg"
highlighted: true
onClicked: {
- if (stackView.depth > 1) {
- stackView.pop()
+ if (contentView.depth > 1) {
+ contentView.pop()
} else {
drawer.open()
}
@@ -34,7 +34,7 @@ ApplicationWindow {
}
Label {
- text: stackView.currentItem.title
+ text: contentView.currentItem.title
font.family: "Work Sans"
font.weight: Font.Medium
font.pointSize: 20
@@ -60,7 +60,7 @@ ApplicationWindow {
text: qsTr("Page 1")
width: parent.width
onClicked: {
- stackView.push("Page1Form.ui.qml")
+ contentView.push("Page1Form.ui.qml")
drawer.close()
}
}
@@ -68,14 +68,14 @@ ApplicationWindow {
text: qsTr("Page 2")
width: parent.width
onClicked: {
- stackView.push("Page2Form.ui.qml")
+ contentView.push("Page2Form.ui.qml")
drawer.close()
}
}
}
}
StackView {
- id: stackView
+ id: contentView
initialItem: Onboarding {
}