2020-06-17 19:18:31 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
2020-09-29 06:39:29 +00:00
|
|
|
import QtGraphicalEffects 1.13
|
2021-10-14 08:04:15 +00:00
|
|
|
|
2021-07-23 09:22:14 +00:00
|
|
|
import StatusQ.Controls 0.1
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
2021-10-12 18:26:02 +00:00
|
|
|
|
2021-10-14 08:04:15 +00:00
|
|
|
import "../../../../shared"
|
|
|
|
import "../../../../shared/popups"
|
|
|
|
import "../panels"
|
|
|
|
import "../stores"
|
|
|
|
|
|
|
|
// TODO: replace with StatusModal
|
2020-06-13 15:17:54 +00:00
|
|
|
ModalPopup {
|
2021-10-14 08:04:15 +00:00
|
|
|
property int selectedIndex: 0
|
2020-06-13 15:17:54 +00:00
|
|
|
property var onClosed: function () {}
|
|
|
|
property var onNextClick: function () {}
|
|
|
|
id: popup
|
2020-07-06 20:39:55 +00:00
|
|
|
//% "Choose a chat name"
|
|
|
|
title: qsTrId("intro-wizard-title2")
|
2021-10-14 08:04:15 +00:00
|
|
|
height: 504
|
2020-06-13 15:17:54 +00:00
|
|
|
|
2021-10-14 08:04:15 +00:00
|
|
|
AccountListPanel {
|
2020-06-13 15:17:54 +00:00
|
|
|
id: accountList
|
|
|
|
anchors.fill: parent
|
2020-06-15 13:37:16 +00:00
|
|
|
interactive: false
|
2020-06-13 15:17:54 +00:00
|
|
|
|
2021-10-14 08:04:15 +00:00
|
|
|
model: OnboardingStore.onBoardingModul.accountsModel
|
|
|
|
isSelected: function (index) {
|
|
|
|
return index === selectedIndex
|
2020-06-13 15:17:54 +00:00
|
|
|
}
|
2021-10-14 08:04:15 +00:00
|
|
|
onAccountSelect: function(index) {
|
|
|
|
selectedIndex = index
|
2020-06-13 15:17:54 +00:00
|
|
|
}
|
|
|
|
}
|
2020-09-30 12:33:26 +00:00
|
|
|
footer: StatusRoundButton {
|
2021-11-02 13:21:11 +00:00
|
|
|
objectName: "submitButton"
|
2020-06-13 15:17:54 +00:00
|
|
|
id: submitBtn
|
|
|
|
anchors.bottom: parent.bottom
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.topMargin: Style.current.padding
|
2020-06-13 15:17:54 +00:00
|
|
|
anchors.right: parent.right
|
2020-09-30 12:33:26 +00:00
|
|
|
icon.name: "arrow-right"
|
|
|
|
icon.width: 20
|
|
|
|
icon.height: 16
|
2020-06-13 15:17:54 +00:00
|
|
|
onClicked : {
|
2021-10-14 08:04:15 +00:00
|
|
|
onNextClick(selectedIndex);
|
2020-06-13 15:17:54 +00:00
|
|
|
popup.close()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|