From 3b42ee7118b34996e7205154816b790e11bb15cb Mon Sep 17 00:00:00 2001 From: Anatasof Wirapraja Date: Wed, 18 Sep 2019 16:31:32 +0700 Subject: change `stackView` to `contentView` --- main.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'main.qml') 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 { } -- cgit v1.2.3