summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2019-09-03 14:39:40 +0700
committerAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2019-09-03 14:39:40 +0700
commite2ea66cdd3f3d413066e3b7c83b50dfc7fa1e488 (patch)
tree78ab50b3a38c3ff2a0bd112e7e782840c58963ce
parent10745ede9f9c4811d0c93e21102f5892e8fe13f7 (diff)
add Drawer
-rw-r--r--main.qml7
-rw-r--r--pages/Home.qml6
2 files changed, 12 insertions, 1 deletions
diff --git a/main.qml b/main.qml
index d8a888d..b432dd5 100644
--- a/main.qml
+++ b/main.qml
@@ -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
+ }
+ }
}