|
|
|
@ -30,305 +30,313 @@ ElDialog { |
|
|
|
property bool _canMax: invoice.invoiceType == Invoice.OnchainInvoice |
|
|
|
property bool _canMax: invoice.invoiceType == Invoice.OnchainInvoice |
|
|
|
|
|
|
|
|
|
|
|
ColumnLayout { |
|
|
|
ColumnLayout { |
|
|
|
width: parent.width |
|
|
|
anchors.fill: parent |
|
|
|
height: parent.height |
|
|
|
|
|
|
|
spacing: 0 |
|
|
|
spacing: 0 |
|
|
|
|
|
|
|
|
|
|
|
GridLayout { |
|
|
|
Flickable { |
|
|
|
id: layout |
|
|
|
Layout.preferredWidth: parent.width |
|
|
|
width: parent.width |
|
|
|
Layout.fillHeight: true |
|
|
|
Layout.leftMargin: constants.paddingLarge |
|
|
|
|
|
|
|
Layout.rightMargin: constants.paddingLarge |
|
|
|
|
|
|
|
columns: 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
leftMargin: constants.paddingLarge |
|
|
|
text: qsTr('Type') |
|
|
|
rightMargin: constants.paddingLarge |
|
|
|
color: Material.accentColor |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RowLayout { |
|
|
|
contentHeight: rootLayout.height |
|
|
|
Layout.fillWidth: true |
|
|
|
clip:true |
|
|
|
Image { |
|
|
|
interactive: height < contentHeight |
|
|
|
Layout.preferredWidth: constants.iconSizeSmall |
|
|
|
|
|
|
|
Layout.preferredHeight: constants.iconSizeSmall |
|
|
|
GridLayout { |
|
|
|
source: invoice.invoiceType == Invoice.LightningInvoice |
|
|
|
id: rootLayout |
|
|
|
? "../../icons/lightning.png" |
|
|
|
width: parent.width |
|
|
|
: "../../icons/bitcoin.png" |
|
|
|
|
|
|
|
} |
|
|
|
columns: 2 |
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
Label { |
|
|
|
text: invoice.invoiceType == Invoice.OnchainInvoice |
|
|
|
text: qsTr('Type') |
|
|
|
? qsTr('On chain') |
|
|
|
color: Material.accentColor |
|
|
|
: invoice.invoiceType == Invoice.LightningInvoice |
|
|
|
} |
|
|
|
? qsTr('Lightning') |
|
|
|
|
|
|
|
: '' |
|
|
|
RowLayout { |
|
|
|
Layout.fillWidth: true |
|
|
|
Layout.fillWidth: true |
|
|
|
|
|
|
|
Image { |
|
|
|
|
|
|
|
Layout.preferredWidth: constants.iconSizeSmall |
|
|
|
|
|
|
|
Layout.preferredHeight: constants.iconSizeSmall |
|
|
|
|
|
|
|
source: invoice.invoiceType == Invoice.LightningInvoice |
|
|
|
|
|
|
|
? "../../icons/lightning.png" |
|
|
|
|
|
|
|
: "../../icons/bitcoin.png" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
|
|
|
|
text: invoice.invoiceType == Invoice.OnchainInvoice |
|
|
|
|
|
|
|
? qsTr('On chain') |
|
|
|
|
|
|
|
: invoice.invoiceType == Invoice.LightningInvoice |
|
|
|
|
|
|
|
? qsTr('Lightning') |
|
|
|
|
|
|
|
: '' |
|
|
|
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
Label { |
|
|
|
text: qsTr('Status') |
|
|
|
text: qsTr('Status') |
|
|
|
color: Material.accentColor |
|
|
|
color: Material.accentColor |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
Label { |
|
|
|
text: invoice.status_str |
|
|
|
text: invoice.status_str |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
Label { |
|
|
|
visible: invoice.invoiceType == Invoice.OnchainInvoice |
|
|
|
visible: invoice.invoiceType == Invoice.OnchainInvoice |
|
|
|
Layout.columnSpan: 2 |
|
|
|
Layout.columnSpan: 2 |
|
|
|
text: qsTr('Address') |
|
|
|
text: qsTr('Address') |
|
|
|
color: Material.accentColor |
|
|
|
color: Material.accentColor |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TextHighlightPane { |
|
|
|
|
|
|
|
visible: invoice.invoiceType == Invoice.OnchainInvoice |
|
|
|
|
|
|
|
|
|
|
|
TextHighlightPane { |
|
|
|
Layout.columnSpan: 2 |
|
|
|
visible: invoice.invoiceType == Invoice.OnchainInvoice |
|
|
|
Layout.fillWidth: true |
|
|
|
|
|
|
|
|
|
|
|
Layout.columnSpan: 2 |
|
|
|
padding: 0 |
|
|
|
Layout.fillWidth: true |
|
|
|
leftPadding: constants.paddingMedium |
|
|
|
|
|
|
|
|
|
|
|
padding: 0 |
|
|
|
Label { |
|
|
|
leftPadding: constants.paddingMedium |
|
|
|
width: parent.width |
|
|
|
|
|
|
|
text: invoice.address |
|
|
|
|
|
|
|
font.family: FixedFont |
|
|
|
|
|
|
|
wrapMode: Text.Wrap |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
Label { |
|
|
|
width: parent.width |
|
|
|
visible: invoice.invoiceType == Invoice.LightningInvoice |
|
|
|
text: invoice.address |
|
|
|
text: qsTr('Remote Pubkey') |
|
|
|
font.family: FixedFont |
|
|
|
color: Material.accentColor |
|
|
|
wrapMode: Text.Wrap |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
TextHighlightPane { |
|
|
|
visible: invoice.invoiceType == Invoice.LightningInvoice |
|
|
|
visible: invoice.invoiceType == Invoice.LightningInvoice |
|
|
|
text: qsTr('Remote Pubkey') |
|
|
|
|
|
|
|
color: Material.accentColor |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TextHighlightPane { |
|
|
|
Layout.columnSpan: 2 |
|
|
|
visible: invoice.invoiceType == Invoice.LightningInvoice |
|
|
|
Layout.fillWidth: true |
|
|
|
|
|
|
|
|
|
|
|
Layout.columnSpan: 2 |
|
|
|
padding: 0 |
|
|
|
Layout.fillWidth: true |
|
|
|
leftPadding: constants.paddingMedium |
|
|
|
|
|
|
|
|
|
|
|
padding: 0 |
|
|
|
Label { |
|
|
|
leftPadding: constants.paddingMedium |
|
|
|
width: parent.width |
|
|
|
|
|
|
|
text: 'pubkey' in invoice.lnprops ? invoice.lnprops.pubkey : '' |
|
|
|
|
|
|
|
font.family: FixedFont |
|
|
|
|
|
|
|
wrapMode: Text.Wrap |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
Label { |
|
|
|
width: parent.width |
|
|
|
visible: invoice.invoiceType == Invoice.LightningInvoice |
|
|
|
text: 'pubkey' in invoice.lnprops ? invoice.lnprops.pubkey : '' |
|
|
|
text: qsTr('Payment hash') |
|
|
|
font.family: FixedFont |
|
|
|
color: Material.accentColor |
|
|
|
wrapMode: Text.Wrap |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
TextHighlightPane { |
|
|
|
visible: invoice.invoiceType == Invoice.LightningInvoice |
|
|
|
visible: invoice.invoiceType == Invoice.LightningInvoice |
|
|
|
text: qsTr('Payment hash') |
|
|
|
|
|
|
|
color: Material.accentColor |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TextHighlightPane { |
|
|
|
Layout.columnSpan: 2 |
|
|
|
visible: invoice.invoiceType == Invoice.LightningInvoice |
|
|
|
Layout.fillWidth: true |
|
|
|
|
|
|
|
|
|
|
|
Layout.columnSpan: 2 |
|
|
|
padding: 0 |
|
|
|
Layout.fillWidth: true |
|
|
|
leftPadding: constants.paddingMedium |
|
|
|
|
|
|
|
|
|
|
|
padding: 0 |
|
|
|
Label { |
|
|
|
leftPadding: constants.paddingMedium |
|
|
|
width: parent.width |
|
|
|
|
|
|
|
text: 'payment_hash' in invoice.lnprops ? invoice.lnprops.payment_hash : '' |
|
|
|
|
|
|
|
font.family: FixedFont |
|
|
|
|
|
|
|
wrapMode: Text.Wrap |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
Label { |
|
|
|
width: parent.width |
|
|
|
text: qsTr('Description') |
|
|
|
text: 'payment_hash' in invoice.lnprops ? invoice.lnprops.payment_hash : '' |
|
|
|
visible: invoice.message |
|
|
|
font.family: FixedFont |
|
|
|
Layout.columnSpan: 2 |
|
|
|
wrapMode: Text.Wrap |
|
|
|
color: Material.accentColor |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
TextHighlightPane { |
|
|
|
text: qsTr('Description') |
|
|
|
visible: invoice.message |
|
|
|
visible: invoice.message |
|
|
|
|
|
|
|
Layout.columnSpan: 2 |
|
|
|
|
|
|
|
color: Material.accentColor |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TextHighlightPane { |
|
|
|
Layout.columnSpan: 2 |
|
|
|
visible: invoice.message |
|
|
|
Layout.fillWidth: true |
|
|
|
|
|
|
|
Layout.alignment: Qt.AlignHCenter |
|
|
|
|
|
|
|
|
|
|
|
Layout.columnSpan: 2 |
|
|
|
padding: 0 |
|
|
|
Layout.fillWidth: true |
|
|
|
leftPadding: constants.paddingMedium |
|
|
|
Layout.alignment: Qt.AlignHCenter |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
padding: 0 |
|
|
|
Label { |
|
|
|
leftPadding: constants.paddingMedium |
|
|
|
text: invoice.message |
|
|
|
|
|
|
|
width: parent.width |
|
|
|
|
|
|
|
font.pixelSize: constants.fontSizeXLarge |
|
|
|
|
|
|
|
wrapMode: Text.Wrap |
|
|
|
|
|
|
|
elide: Text.ElideRight |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
Label { |
|
|
|
text: invoice.message |
|
|
|
text: qsTr('Amount to send') |
|
|
|
width: parent.width |
|
|
|
color: Material.accentColor |
|
|
|
font.pixelSize: constants.fontSizeXLarge |
|
|
|
Layout.columnSpan: 2 |
|
|
|
wrapMode: Text.Wrap |
|
|
|
|
|
|
|
elide: Text.ElideRight |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
TextHighlightPane { |
|
|
|
text: qsTr('Amount to send') |
|
|
|
id: amountContainer |
|
|
|
color: Material.accentColor |
|
|
|
|
|
|
|
Layout.columnSpan: 2 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TextHighlightPane { |
|
|
|
Layout.columnSpan: 2 |
|
|
|
id: amountContainer |
|
|
|
Layout.fillWidth: true |
|
|
|
|
|
|
|
Layout.alignment: Qt.AlignHCenter |
|
|
|
|
|
|
|
|
|
|
|
Layout.columnSpan: 2 |
|
|
|
padding: 0 |
|
|
|
Layout.fillWidth: true |
|
|
|
leftPadding: constants.paddingXXLarge |
|
|
|
Layout.alignment: Qt.AlignHCenter |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
padding: 0 |
|
|
|
property bool editmode: false |
|
|
|
leftPadding: constants.paddingXXLarge |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
property bool editmode: false |
|
|
|
RowLayout { |
|
|
|
|
|
|
|
id: amountLayout |
|
|
|
|
|
|
|
width: parent.width |
|
|
|
|
|
|
|
|
|
|
|
RowLayout { |
|
|
|
GridLayout { |
|
|
|
id: amountLayout |
|
|
|
visible: !amountContainer.editmode |
|
|
|
width: parent.width |
|
|
|
columns: 2 |
|
|
|
|
|
|
|
|
|
|
|
GridLayout { |
|
|
|
|
|
|
|
visible: !amountContainer.editmode |
|
|
|
|
|
|
|
columns: 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
|
|
|
|
visible: invoice.amount.isMax |
|
|
|
|
|
|
|
Layout.columnSpan: 2 |
|
|
|
|
|
|
|
font.pixelSize: constants.fontSizeXLarge |
|
|
|
|
|
|
|
font.bold: true |
|
|
|
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
|
|
|
text: qsTr('All on-chain funds') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
Label { |
|
|
|
visible: !invoice.amount.isMax |
|
|
|
visible: invoice.amount.isMax |
|
|
|
font.pixelSize: constants.fontSizeXLarge |
|
|
|
Layout.columnSpan: 2 |
|
|
|
font.family: FixedFont |
|
|
|
font.pixelSize: constants.fontSizeXLarge |
|
|
|
font.bold: true |
|
|
|
font.bold: true |
|
|
|
text: Config.formatSats(invoice.amount, false) |
|
|
|
Layout.fillWidth: true |
|
|
|
} |
|
|
|
text: qsTr('All on-chain funds') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
Label { |
|
|
|
visible: !invoice.amount.isMax |
|
|
|
visible: !invoice.amount.isMax |
|
|
|
Layout.fillWidth: true |
|
|
|
font.pixelSize: constants.fontSizeXLarge |
|
|
|
text: Config.baseUnit |
|
|
|
font.family: FixedFont |
|
|
|
color: Material.accentColor |
|
|
|
font.bold: true |
|
|
|
font.pixelSize: constants.fontSizeXLarge |
|
|
|
text: Config.formatSats(invoice.amount, false) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
Label { |
|
|
|
id: fiatValue |
|
|
|
visible: !invoice.amount.isMax |
|
|
|
visible: Daemon.fx.enabled && !invoice.amount.isMax |
|
|
|
Layout.fillWidth: true |
|
|
|
text: Daemon.fx.fiatValue(invoice.amount, false) |
|
|
|
text: Config.baseUnit |
|
|
|
font.pixelSize: constants.fontSizeMedium |
|
|
|
color: Material.accentColor |
|
|
|
color: constants.mutedForeground |
|
|
|
font.pixelSize: constants.fontSizeXLarge |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
Label { |
|
|
|
visible: Daemon.fx.enabled && !invoice.amount.isMax |
|
|
|
id: fiatValue |
|
|
|
Layout.fillWidth: true |
|
|
|
visible: Daemon.fx.enabled && !invoice.amount.isMax |
|
|
|
text: Daemon.fx.fiatCurrency |
|
|
|
text: Daemon.fx.fiatValue(invoice.amount, false) |
|
|
|
font.pixelSize: constants.fontSizeMedium |
|
|
|
font.pixelSize: constants.fontSizeMedium |
|
|
|
color: constants.mutedForeground |
|
|
|
color: constants.mutedForeground |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
Label { |
|
|
|
|
|
|
|
visible: Daemon.fx.enabled && !invoice.amount.isMax |
|
|
|
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
|
|
|
text: Daemon.fx.fiatCurrency |
|
|
|
|
|
|
|
font.pixelSize: constants.fontSizeMedium |
|
|
|
|
|
|
|
color: constants.mutedForeground |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ToolButton { |
|
|
|
|
|
|
|
visible: !amountContainer.editmode |
|
|
|
|
|
|
|
icon.source: '../../icons/pen.png' |
|
|
|
|
|
|
|
icon.color: 'transparent' |
|
|
|
|
|
|
|
onClicked: { |
|
|
|
|
|
|
|
amountBtc.text = invoice.amount.satsInt == 0 ? '' : Config.formatSats(invoice.amount) |
|
|
|
|
|
|
|
amountMax.checked = invoice.amount.isMax |
|
|
|
|
|
|
|
amountContainer.editmode = true |
|
|
|
|
|
|
|
amountBtc.focus = true |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
GridLayout { |
|
|
|
|
|
|
|
visible: amountContainer.editmode |
|
|
|
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
|
|
|
columns: 3 |
|
|
|
|
|
|
|
BtcField { |
|
|
|
|
|
|
|
id: amountBtc |
|
|
|
|
|
|
|
fiatfield: amountFiat |
|
|
|
|
|
|
|
enabled: !amountMax.checked |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
ToolButton { |
|
|
|
text: Config.baseUnit |
|
|
|
visible: !amountContainer.editmode |
|
|
|
color: Material.accentColor |
|
|
|
icon.source: '../../icons/pen.png' |
|
|
|
Layout.fillWidth: amountMax.visible ? false : true |
|
|
|
icon.color: 'transparent' |
|
|
|
Layout.columnSpan: amountMax.visible ? 1 : 2 |
|
|
|
onClicked: { |
|
|
|
|
|
|
|
amountBtc.text = invoice.amount.satsInt == 0 ? '' : Config.formatSats(invoice.amount) |
|
|
|
|
|
|
|
amountMax.checked = invoice.amount.isMax |
|
|
|
|
|
|
|
amountContainer.editmode = true |
|
|
|
|
|
|
|
amountBtc.focus = true |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
Switch { |
|
|
|
GridLayout { |
|
|
|
id: amountMax |
|
|
|
visible: amountContainer.editmode |
|
|
|
text: qsTr('Max') |
|
|
|
|
|
|
|
visible: _canMax |
|
|
|
|
|
|
|
Layout.fillWidth: true |
|
|
|
Layout.fillWidth: true |
|
|
|
checked: invoice.amount.isMax |
|
|
|
columns: 3 |
|
|
|
onCheckedChanged: { |
|
|
|
BtcField { |
|
|
|
if (activeFocus) { |
|
|
|
id: amountBtc |
|
|
|
invoice.amount.isMax = checked |
|
|
|
fiatfield: amountFiat |
|
|
|
|
|
|
|
enabled: !amountMax.checked |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
|
|
|
|
text: Config.baseUnit |
|
|
|
|
|
|
|
color: Material.accentColor |
|
|
|
|
|
|
|
Layout.fillWidth: amountMax.visible ? false : true |
|
|
|
|
|
|
|
Layout.columnSpan: amountMax.visible ? 1 : 2 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
Switch { |
|
|
|
|
|
|
|
id: amountMax |
|
|
|
|
|
|
|
text: qsTr('Max') |
|
|
|
|
|
|
|
visible: _canMax |
|
|
|
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
|
|
|
checked: invoice.amount.isMax |
|
|
|
|
|
|
|
onCheckedChanged: { |
|
|
|
|
|
|
|
if (activeFocus) { |
|
|
|
|
|
|
|
invoice.amount.isMax = checked |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FiatField { |
|
|
|
FiatField { |
|
|
|
id: amountFiat |
|
|
|
id: amountFiat |
|
|
|
btcfield: amountBtc |
|
|
|
btcfield: amountBtc |
|
|
|
visible: Daemon.fx.enabled && !amountMax.checked |
|
|
|
visible: Daemon.fx.enabled && !amountMax.checked |
|
|
|
enabled: !amountMax.checked |
|
|
|
enabled: !amountMax.checked |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
Label { |
|
|
|
Layout.columnSpan: 2 |
|
|
|
Layout.columnSpan: 2 |
|
|
|
visible: Daemon.fx.enabled && !amountMax.checked |
|
|
|
visible: Daemon.fx.enabled && !amountMax.checked |
|
|
|
text: Daemon.fx.fiatCurrency |
|
|
|
text: Daemon.fx.fiatCurrency |
|
|
|
color: Material.accentColor |
|
|
|
color: Material.accentColor |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
ToolButton { |
|
|
|
ToolButton { |
|
|
|
visible: amountContainer.editmode |
|
|
|
visible: amountContainer.editmode |
|
|
|
Layout.fillWidth: false |
|
|
|
Layout.fillWidth: false |
|
|
|
icon.source: '../../icons/confirmed.png' |
|
|
|
icon.source: '../../icons/confirmed.png' |
|
|
|
icon.color: 'transparent' |
|
|
|
icon.color: 'transparent' |
|
|
|
onClicked: { |
|
|
|
onClicked: { |
|
|
|
amountContainer.editmode = false |
|
|
|
amountContainer.editmode = false |
|
|
|
invoice.amount = amountMax.checked ? MAX : Config.unitsToSats(amountBtc.text) |
|
|
|
invoice.amount = amountMax.checked ? MAX : Config.unitsToSats(amountBtc.text) |
|
|
|
invoiceAmountChanged() |
|
|
|
invoiceAmountChanged() |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
ToolButton { |
|
|
|
|
|
|
|
visible: amountContainer.editmode |
|
|
|
|
|
|
|
Layout.fillWidth: false |
|
|
|
|
|
|
|
icon.source: '../../icons/closebutton.png' |
|
|
|
|
|
|
|
icon.color: 'transparent' |
|
|
|
|
|
|
|
onClicked: amountContainer.editmode = false |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
ToolButton { |
|
|
|
|
|
|
|
visible: amountContainer.editmode |
|
|
|
|
|
|
|
Layout.fillWidth: false |
|
|
|
|
|
|
|
icon.source: '../../icons/closebutton.png' |
|
|
|
|
|
|
|
icon.color: 'transparent' |
|
|
|
|
|
|
|
onClicked: amountContainer.editmode = false |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Item { Layout.preferredHeight: constants.paddingLarge; Layout.preferredWidth: 1 } |
|
|
|
Item { Layout.preferredHeight: constants.paddingLarge; Layout.preferredWidth: 1 } |
|
|
|
|
|
|
|
|
|
|
|
InfoTextArea { |
|
|
|
InfoTextArea { |
|
|
|
Layout.columnSpan: 2 |
|
|
|
Layout.columnSpan: 2 |
|
|
|
Layout.alignment: Qt.AlignHCenter |
|
|
|
Layout.alignment: Qt.AlignHCenter |
|
|
|
Layout.preferredWidth: parent.width * 3/4 |
|
|
|
Layout.preferredWidth: parent.width * 3/4 |
|
|
|
visible: invoice.userinfo |
|
|
|
visible: invoice.userinfo |
|
|
|
text: invoice.userinfo |
|
|
|
text: invoice.userinfo |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Item { Layout.fillHeight: true; Layout.preferredWidth: 1 } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FlatButton { |
|
|
|
FlatButton { |
|
|
|
Layout.fillWidth: true |
|
|
|
Layout.fillWidth: true |
|
|
|
text: qsTr('Pay') |
|
|
|
text: qsTr('Pay') |
|
|
|
|