Stefan 7cf0170a8a chore(CPP): integrate tokens balance in UI POC
Integrate token count in UI
Use delete later for QML exposed items to avoid errors

Closes #6321
2022-08-05 10:40:04 +02:00

52 lines
1.1 KiB
QML

import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import Status.Wallet
import Status.Containers
Item {
id: root
required property AccountAssetsController assetController
required property WalletAccount account
ListView {
id: listView
anchors.fill: parent
model: root.assetController.assetModel
delegate: RowLayout {
required property WalletAsset asset
Label {
text: asset.name
Layout.preferredWidth: listView.width * 0.4
}
RowLayout {
Layout.preferredWidth: listView.width * 0.4
Label {
text: asset.count
}
Label {
text: asset.symbol
}
LayoutSpacer{}
}
RowLayout {
Label {
text: asset.value
}
Label {
//text: asset.currency
}
}
LayoutSpacer{}
}
}
}