|
@ -44,24 +44,25 @@ Dialog { |
|
|
text: qsTr('Type') |
|
|
text: qsTr('Type') |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
RowLayout { |
|
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
|
Image { |
|
|
|
|
|
//Layout.rowSpan: 2 |
|
|
|
|
|
Layout.preferredWidth: constants.iconSizeSmall |
|
|
|
|
|
Layout.preferredHeight: constants.iconSizeSmall |
|
|
|
|
|
source: invoice.invoiceType == Invoice.LightningInvoice |
|
|
|
|
|
? "../../icons/lightning.png" |
|
|
|
|
|
: "../../icons/bitcoin.png" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
Label { |
|
|
Label { |
|
|
text: invoice.invoiceType == Invoice.OnchainInvoice |
|
|
text: invoice.invoiceType == Invoice.OnchainInvoice |
|
|
? qsTr('On-chain invoice') |
|
|
? qsTr('On chain') |
|
|
: invoice.invoiceType == Invoice.LightningInvoice |
|
|
: invoice.invoiceType == Invoice.LightningInvoice |
|
|
? qsTr('Lightning invoice') |
|
|
? qsTr('Lightning') |
|
|
: '' |
|
|
: '' |
|
|
Layout.fillWidth: true |
|
|
Layout.fillWidth: true |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Label { |
|
|
|
|
|
text: qsTr('Description') |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
|
|
text: invoice.message |
|
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
|
wrapMode: Text.Wrap |
|
|
|
|
|
elide: Text.ElideRight |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Label { |
|
|
Label { |
|
@ -71,6 +72,8 @@ Dialog { |
|
|
RowLayout { |
|
|
RowLayout { |
|
|
Layout.fillWidth: true |
|
|
Layout.fillWidth: true |
|
|
Label { |
|
|
Label { |
|
|
|
|
|
font.pixelSize: constants.fontSizeLarge |
|
|
|
|
|
font.family: FixedFont |
|
|
font.bold: true |
|
|
font.bold: true |
|
|
text: Config.formatSats(invoice.amount, false) |
|
|
text: Config.formatSats(invoice.amount, false) |
|
|
} |
|
|
} |
|
@ -90,6 +93,17 @@ Dialog { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
|
|
text: qsTr('Description') |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
|
|
text: invoice.message |
|
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
|
wrapMode: Text.Wrap |
|
|
|
|
|
elide: Text.ElideRight |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
Label { |
|
|
Label { |
|
|
visible: invoice.invoiceType == Invoice.OnchainInvoice |
|
|
visible: invoice.invoiceType == Invoice.OnchainInvoice |
|
|
text: qsTr('Address') |
|
|
text: qsTr('Address') |
|
|