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 {}
|
2020-06-04 13:00:17 +00:00
|
|
|
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
|
2020-06-04 13:00:17 +00:00
|
|
|
onAccountSelect: function(index) {
|
|
|
|
addressesView.onAccountSelect(index)
|
|
|
|
}
|
2020-06-03 20:50:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.fillWidth: true
|
|
|
|
focus: true
|
|
|
|
}
|
|
|
|
|