status-desktop/ui/onboarding/Login/AccountList.qml

37 lines
815 B
QML
Raw Normal View History

2020-06-03 20:50:59 +00:00
import QtQuick 2.14
import QtQuick.Controls 2.3
import QtQuick.Layouts 1.3
import Qt.labs.platform 1.1
import "./samples/"
ListView {
property var accounts: AccountsData {}
property var onAccountSelect: function() {}
2020-06-03 20:50:59 +00:00
id: addressesView
anchors.right: parent.right
anchors.rightMargin: 0
anchors.left: parent.left
anchors.leftMargin: 0
anchors.bottom: footer.top
anchors.bottomMargin: 0
anchors.top: title.bottom
anchors.topMargin: 16
contentWidth: 200
height: parent.height
model: accounts
delegate: AddressView {
username: model.username
identicon: model.identicon
onAccountSelect: function(index) {
addressesView.onAccountSelect(index)
}
2020-06-03 20:50:59 +00:00
}
Layout.fillHeight: true
Layout.fillWidth: true
focus: true
}