2020-06-17 15:18:31 -04:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
2021-10-14 10:04:15 +02:00
|
|
|
|
2022-07-14 14:03:36 +03:00
|
|
|
import StatusQ.Core 0.1
|
2021-09-28 18:04:06 +03:00
|
|
|
|
|
|
|
import utils 1.0
|
2020-06-03 16:50:59 -04:00
|
|
|
|
2022-07-14 14:03:36 +03:00
|
|
|
import "../controls"
|
|
|
|
|
|
|
|
StatusListView {
|
2021-10-14 10:04:15 +02:00
|
|
|
id: accountsView
|
|
|
|
|
2020-06-13 11:17:54 -04:00
|
|
|
property var isSelected: function () {}
|
2020-06-11 17:23:27 -04:00
|
|
|
property var onAccountSelect: function () {}
|
2020-06-03 16:50:59 -04:00
|
|
|
|
2020-06-11 17:23:27 -04:00
|
|
|
anchors.fill: parent
|
|
|
|
focus: true
|
2021-11-02 21:21:45 +01:00
|
|
|
spacing: Style.current.halfPadding
|
2020-06-03 16:50:59 -04:00
|
|
|
|
2021-10-14 10:04:15 +02:00
|
|
|
delegate: AccountViewDelegate {
|
|
|
|
username: model.username
|
2022-03-30 17:30:28 +02:00
|
|
|
image: model.thumbnailImage
|
2021-07-26 09:17:49 +02:00
|
|
|
keyUid: model.keyUid
|
|
|
|
address: model.address || ''
|
2022-04-07 21:02:54 +02:00
|
|
|
colorHash: model.colorHash
|
|
|
|
colorId: model.colorId
|
2021-10-14 10:04:15 +02:00
|
|
|
isSelected: function (index, keyUid) {
|
|
|
|
return accountsView.isSelected(index, keyUid)
|
2020-06-13 11:17:54 -04:00
|
|
|
}
|
2021-10-14 10:04:15 +02:00
|
|
|
onAccountSelect: function (index) {
|
|
|
|
accountsView.onAccountSelect(index)
|
2020-06-11 17:23:27 -04:00
|
|
|
}
|
2020-06-03 16:50:59 -04:00
|
|
|
}
|
2020-06-11 17:23:27 -04:00
|
|
|
}
|