2023-08-16 09:57:32 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
import QtQuick.Layouts 1.14
|
|
|
|
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
|
2023-10-03 13:31:54 +00:00
|
|
|
import utils 1.0
|
2023-08-16 09:57:32 +00:00
|
|
|
import shared.controls 1.0
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
id: root
|
|
|
|
|
2023-08-23 07:09:16 +00:00
|
|
|
enum Purpose {
|
2023-08-21 10:58:21 +00:00
|
|
|
AppSync,
|
|
|
|
KeypairSync
|
2023-08-16 09:57:32 +00:00
|
|
|
}
|
|
|
|
|
2023-08-23 07:09:16 +00:00
|
|
|
enum Type {
|
|
|
|
QRCode,
|
|
|
|
EncryptedKey
|
|
|
|
}
|
|
|
|
|
|
|
|
property int purpose: SyncingCodeInstructions.Purpose.AppSync
|
|
|
|
property int type: SyncingCodeInstructions.Type.QRCode
|
2023-08-21 10:58:21 +00:00
|
|
|
|
2023-10-03 13:31:54 +00:00
|
|
|
spacing: Style.current.xlPadding
|
2023-08-16 09:57:32 +00:00
|
|
|
|
|
|
|
StatusSwitchTabBar {
|
|
|
|
id: switchTabBar
|
|
|
|
Layout.fillWidth: true
|
2023-10-03 13:31:54 +00:00
|
|
|
Layout.leftMargin: Style.current.padding
|
|
|
|
Layout.rightMargin: Style.current.padding
|
2023-08-16 09:57:32 +00:00
|
|
|
Layout.minimumWidth: 400
|
|
|
|
currentIndex: 0
|
|
|
|
|
|
|
|
StatusSwitchTabButton {
|
|
|
|
text: qsTr("Mobile")
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusSwitchTabButton {
|
|
|
|
text: qsTr("Desktop")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
StackLayout {
|
|
|
|
Layout.alignment: Qt.AlignHCenter
|
2024-07-22 13:56:47 +00:00
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.preferredHeight: Math.max(mobileSync.implicitHeight, desktopSync.implicitHeight)
|
2023-08-16 09:57:32 +00:00
|
|
|
currentIndex: switchTabBar.currentIndex
|
|
|
|
|
|
|
|
GetSyncCodeMobileInstructions {
|
|
|
|
id: mobileSync
|
|
|
|
Layout.alignment: Qt.AlignHCenter
|
2023-08-21 10:58:21 +00:00
|
|
|
|
2023-08-23 07:09:16 +00:00
|
|
|
purpose: root.purpose
|
2023-08-21 10:58:21 +00:00
|
|
|
type: root.type
|
2023-08-16 09:57:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
GetSyncCodeDesktopInstructions {
|
|
|
|
id: desktopSync
|
|
|
|
Layout.alignment: Qt.AlignHCenter
|
2023-08-21 10:58:21 +00:00
|
|
|
|
2023-08-23 07:09:16 +00:00
|
|
|
purpose: root.purpose
|
2023-08-21 10:58:21 +00:00
|
|
|
type: root.type
|
2023-08-16 09:57:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|