From 2bcf1b40ef11bbcfde6069ecf610d3ad6e63c0f7 Mon Sep 17 00:00:00 2001 From: Anatasof Wirapraja Date: Fri, 20 Sep 2019 12:28:55 +0700 Subject: add `FutureForm` for `drawer.ItemDelegate` sample --- Home.qml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'Home.qml') diff --git a/Home.qml b/Home.qml index f125141..af00c24 100644 --- a/Home.qml +++ b/Home.qml @@ -68,6 +68,28 @@ Page { width: window.width * 0.8 height: window.height visible: false + + Column { + anchors.fill: parent + ItemDelegate { + text: qsTr("Today") + width: parent.width + onClicked: { + contentView.pop("HomeForm.ui.qml") + drawer.close() + } + } + + ItemDelegate { + text:qsTr("Future") + width: parent.width + onClicked: { + contentView.push("FutureForm.ui.qml") + drawer.close() + } + + } + } } StackView { -- cgit v1.2.3