diff options
author | Anatasof Wirapraja <anatasof.wirapraja@gmail.com> | 2019-09-03 14:39:40 +0700 |
---|---|---|
committer | Anatasof Wirapraja <anatasof.wirapraja@gmail.com> | 2019-09-03 14:39:40 +0700 |
commit | e2ea66cdd3f3d413066e3b7c83b50dfc7fa1e488 (patch) | |
tree | 78ab50b3a38c3ff2a0bd112e7e782840c58963ce | |
parent | 10745ede9f9c4811d0c93e21102f5892e8fe13f7 (diff) |
add Drawer
-rw-r--r-- | main.qml | 7 | ||||
-rw-r--r-- | pages/Home.qml | 6 |
2 files changed, 12 insertions, 1 deletions
@@ -11,11 +11,16 @@ ApplicationWindow { Material.accent: Material.DeepPurple + Drawer { + id: drawer + width: 0.8 * appWindow.width + height: appWindow.height + } + StackView { id: stackView anchors.fill : parent initialItem: Login {} } - } diff --git a/pages/Home.qml b/pages/Home.qml index 1cce621..7116a43 100644 --- a/pages/Home.qml +++ b/pages/Home.qml @@ -4,4 +4,10 @@ import id.co.darapsa.kelakon.user 0.1 HomeForm { width: stackView.width height: stackView.height + + menuButton { + onClicked: { + drawer.visible = !drawer.visible + } + } } |