diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-25 09:56:48 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-25 09:56:48 +0800 |
commit | 06f744d8f3d458bde5d213ac0b9981ff0891153f (patch) | |
tree | 207b65ac57325524a69cb3be1f116cb50a7004e6 /main.qml | |
parent | da303a3c4d82b758b0e9aba0bf49b8efc3e4843e (diff) |
Simplify the QML logics entrance
Diffstat (limited to 'main.qml')
-rw-r--r-- | main.qml | 24 |
1 files changed, 13 insertions, 11 deletions
@@ -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") } } |