49 lines
1.1 KiB
QML
Raw Normal View History

2020-06-17 15:18:31 -04:00
import QtQuick 2.13
import QtQuick.Controls 2.13
import QtGraphicalEffects 1.13
import StatusQ.Controls 0.1
import utils 1.0
import "../../../../shared"
import "../panels"
import "../stores"
2020-06-13 11:17:54 -04:00
ModalPopup {
property int selectedIndex: 0
property var onClosed: function () {}
property var onNextClick: function () {}
id: popup
//% "Choose a chat name"
title: qsTrId("intro-wizard-title2")
height: 504
2020-06-13 11:17:54 -04:00
AccountListPanel {
2020-06-13 11:17:54 -04:00
id: accountList
anchors.fill: parent
2020-06-15 09:37:16 -04:00
interactive: false
2020-06-13 11:17:54 -04:00
model: OnboardingStore.onBoardingModel
isSelected: function (index) {
2020-06-13 11:17:54 -04:00
return index === selectedIndex
}
onAccountSelect: function(index) {
selectedIndex = index
}
}
footer: StatusRoundButton {
2020-06-13 11:17:54 -04:00
id: submitBtn
anchors.bottom: parent.bottom
anchors.topMargin: Style.current.padding
2020-06-13 11:17:54 -04:00
anchors.right: parent.right
icon.name: "arrow-right"
icon.width: 20
icon.height: 16
2020-06-13 11:17:54 -04:00
onClicked : {
onNextClick(selectedIndex);
popup.close()
}
}
}