summaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-12 17:48:38 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-12 17:48:38 +0800
commitfe0a17cc38d21c0c0cfb45f5d8f08c6e72f9e409 (patch)
treee37f7e1d751fe3737901bc69454c269bac6d52d6 /main.qml
parentf2b182a34a28dfd40079d563ff47d2e56e4aae1e (diff)
Move the QML login signal from appWindow to login
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml8
1 files changed, 5 insertions, 3 deletions
diff --git a/main.qml b/main.qml
index bf800b6..7499b81 100644
--- a/main.qml
+++ b/main.qml
@@ -3,14 +3,14 @@ import QtQuick.Controls 2.12
import QtQuick.Controls.Material 2.12
ApplicationWindow {
+ property alias login: login
+
id: appWindow
width: 360
height: 640
visible: true
Material.accent: Material.DeepPurple
- signal logIn(string name, string password)
-
Drawer {
id: drawer
width: 0.8 * appWindow.width
@@ -21,6 +21,8 @@ ApplicationWindow {
id: stackView
anchors.fill : parent
- initialItem: Login {}
+ initialItem: Login {
+ id: login
+ }
}
}