1
0

qml: add available wallets model

This commit is contained in:
Sander van Grieken
2021-04-06 14:13:51 +02:00
parent 599b01f009
commit 3b22ecdae4
4 changed files with 135 additions and 69 deletions

View File

@@ -5,13 +5,16 @@ import QtQuick.Controls 2.0
Item {
property string title: 'Wallets'
anchors.fill: parent
ListView {
width: parent.width
height: 200
model: Daemon.activeWallets
height: parent.height
model: Daemon.availableWallets
delegate: Item {
width: ListView.view.width
height: 50
RowLayout {
x: 20
@@ -22,9 +25,17 @@ Item {
}
Label {
font.pointSize: 13
text: model.display
font.pointSize: model.active ? 14 : 13
font.bold: model.active
text: model.name
Layout.fillWidth: true
}
}
MouseArea {
anchors.fill: parent
onClicked: openMenu()
}
}
}