status-desktop/ui/onboarding/Keycard.qml

55 lines
1.0 KiB
QML
Raw Normal View History

2021-09-24 12:03:57 +00:00
import QtQuick 2.13
import "./Keycard"
import "../shared/keycard"
// this will be the entry point. for now it opens all keycard-related dialogs in sequence for test
Item {
property var onClosed: function () {}
id: keycardView
anchors.fill: parent
Component.onCompleted: {
createPinModal.open()
}
CreatePINModal {
id: createPinModal
onClosed: function () {
pairingModal.open()
}
}
PairingModal {
id: pairingModal
onClosed: function () {
pinModal.open()
}
}
PINModal {
id: pinModal
onClosed: function () {
2021-09-27 07:36:38 +00:00
insertCard.open()
}
}
InsertCard {
id: insertCard
onClosed: function() {
2021-09-24 12:03:57 +00:00
keycardView.onClosed()
}
}
2021-09-27 09:07:20 +00:00
Connections {
id: connection
target: keycardModel
ignoreUnknownSignals: true
onCardConnected: {
insertCard.close()
}
onCardDisconnected: {
insertCard.open()
}
}
2021-09-24 12:03:57 +00:00
}