status-desktop/ui/app/AppLayouts/Wallet/CollectiblesTab.qml

68 lines
1.6 KiB
QML
Raw Normal View History

2020-06-17 19:18:31 +00:00
import QtQuick 2.13
import "../../../imports"
2020-05-28 14:54:42 +00:00
Item {
Text {
visible: walletModel.collectibles.rowCount() === 0
text: qsTr("No collectibles in this account")
}
Component {
id: collectiblesViewDelegate
Item {
id: element
anchors.right: parent.right
anchors.rightMargin: 0
anchors.left: parent.left
anchors.leftMargin: 0
height: 40
Image {
id: collectibleImage
width: 36
height: 36
source: image
anchors.left: parent.left
anchors.leftMargin: 0
anchors.verticalCenter: parent.verticalCenter
}
Text {
id: collectibleName
text: name
anchors.leftMargin: Theme.padding
anchors.verticalCenter: parent.verticalCenter
anchors.left: collectibleImage.right
color: Theme.darkGrey
font.pixelSize: 15
}
}
}
ListModel {
id: exampleModel
ListElement {
name: "Kitty cat"
image: "../../img/token-icons/eth.svg"
}
}
ListView {
id: assetListView
spacing: Theme.smallPadding
anchors.topMargin: Theme.bigPadding
anchors.fill: parent
// model: exampleModel
model: walletModel.collectibles
delegate: collectiblesViewDelegate
2020-05-28 14:54:42 +00:00
}
}
2020-06-17 19:18:31 +00:00
/*##^##
Designer {
D{i:0;autoSize:true;formeditorColor:"#ffffff";height:480;width:640}
2020-06-17 19:18:31 +00:00
}
##^##*/