1
0

qml: more robust keystore properties builder, support imported type

This commit is contained in:
Sander van Grieken
2023-03-09 21:49:42 +01:00
parent aaca7c58ad
commit 016eea2c04
2 changed files with 31 additions and 4 deletions

View File

@@ -404,6 +404,30 @@ Pane {
width: parent.width
columns: 2
Label {
text: qsTr('Keystore type')
visible: modelData.keystore_type
color: Material.accentColor
}
Label {
Layout.fillWidth: true
text: modelData.keystore_type
visible: modelData.keystore_type
}
Label {
text: modelData.watch_only
? qsTr('Imported addresses')
: qsTr('Imported keys')
visible: modelData.num_imported
color: Material.accentColor
}
Label {
Layout.fillWidth: true
text: modelData.num_imported
visible: modelData.num_imported
}
Label {
text: qsTr('Derivation prefix')
visible: modelData.derivation_prefix
@@ -438,6 +462,7 @@ Pane {
Layout.fillWidth: true
Layout.columnSpan: 2
Layout.leftMargin: constants.paddingLarge
visible: modelData.master_pubkey
Label {
text: modelData.master_pubkey
wrapMode: Text.Wrap