summaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-25 09:56:48 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-25 09:56:48 +0800
commit06f744d8f3d458bde5d213ac0b9981ff0891153f (patch)
tree207b65ac57325524a69cb3be1f116cb50a7004e6 /main.qml
parentda303a3c4d82b758b0e9aba0bf49b8efc3e4843e (diff)
Simplify the QML logics entrance
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml24
1 files changed, 13 insertions, 11 deletions
diff --git a/main.qml b/main.qml
index eb0f23f..054ea7c 100644
--- a/main.qml
+++ b/main.qml
@@ -1,24 +1,26 @@
import QtQuick 2.12
import QtQuick.Controls 2.12
-import QtQuick.Controls.Material 2.12
-
+import "larva/features"
ApplicationWindow {
+ signal logIn(string name, string password)
+ signal ticketNew(string queue, string requestor)
+ function pushHome() {
+ pageView.push("Home.qml")
+ }
+
id: window
visible: true
width: 360
height: 640
- title: {
- text: qsTr("kelakon")
- }
- StackView {
- property alias onboarding: onboarding
+ OnboardingForm {
id: pageView
anchors.fill: parent
- initialItem: Onboarding {
- id: onboarding
- onboardingText1.text: qsTr("Get things done today, chill tomorrow.")
- }
+ logoImage.source: "kelakon-logo.png"
+ onboardingImage.source: "onboarding-1.png"
+ onboardingText1.text: qsTr("Get things done today, chill tomorrow.")
+ registerButton.onClicked: pageView.push("Email.qml")
+ loginButton.onClicked: pageView.push("Login.qml")
}
}