import QtQuick 2.3 import "../../../imports" Item { Component { id: assetViewDelegate Item { id: element anchors.right: parent.right anchors.rightMargin: 0 anchors.left: parent.left anchors.leftMargin: 0 height: 40 Image { id: assetInfoImage width: 36 height: 36 source: image anchors.left: parent.left anchors.leftMargin: 0 anchors.verticalCenter: parent.verticalCenter } Text { id: assetSymbol text: symbol anchors.left: assetInfoImage.right anchors.leftMargin: Theme.smallPadding anchors.top: assetInfoImage.top anchors.topMargin: 0 color: Theme.black font.pixelSize: 15 } Text { id: assetFullTokenName text: fullTokenName anchors.bottom: parent.bottom anchors.bottomMargin: 0 anchors.left: assetInfoImage.right anchors.leftMargin: Theme.smallPadding color: Theme.darkGrey font.pixelSize: 15 } Text { id: assetValue text: value anchors.right: parent.right anchors.rightMargin: 0 font.pixelSize: 15 font.strikeout: false } Text { id: assetFiatValue color: Theme.darkGrey text: fiatValue anchors.right: parent.right anchors.rightMargin: 0 anchors.bottom: parent.bottom anchors.bottomMargin: 0 font.pixelSize: 15 } } } ListModel { id: exampleModel ListElement { value: "123 USD" symbol: "ETH" fullTokenName: "Ethereum" fiatValue: "3423 ETH" image: "../../img/token-icons/eth.svg" } } ListView { id: assetListView anchors.topMargin: 20 anchors.fill: parent // model: exampleModel model: assetsModel.assets delegate: assetViewDelegate } } /*##^## Designer { D{i:0;autoSize:true;formeditorColor:"#ffffff";height:480;width:640} } ##^##*/