6 #include <qt/forms/ui_receiverequestdialog.h> 18 #if defined(HAVE_CONFIG_H) 19 #include <config/bitcoin-config.h> 27 ui->btnSaveAs->setVisible(
false);
28 ui->lblQRCode->setVisible(
false);
31 connect(
ui->btnSaveAs, &QPushButton::clicked,
ui->lblQRCode,
61 if (target.isEmpty()) {
64 setWindowTitle(tr(
"Request payment to %1").arg(target));
67 ui->btnSaveAs->setEnabled(
false);
69 html +=
"<html><font face='verdana, arial, helvetica, sans-serif'>";
70 html +=
"<b>" + tr(
"Payment information") +
"</b><br>";
71 html +=
"<b>" + tr(
"URI") +
"</b>: ";
73 html +=
"<b>" + tr(
"Address") +
76 html +=
"<b>" + tr(
"Amount") +
"</b>: " +
82 html +=
"<b>" + tr(
"Label") +
86 html +=
"<b>" + tr(
"Message") +
90 html +=
"<b>" + tr(
"Wallet") +
93 ui->outUri->setText(html);
96 ui->btnSaveAs->setEnabled(
true);
static constexpr Amount zero()
Ui::ReceiveRequestDialog * ui
QString HtmlEscape(const QString &str, bool fMultiLine)
QString formatBitcoinURI(const SendCoinsRecipient &info)
ReceiveRequestDialog(QWidget *parent=nullptr)
int getDisplayUnit() const
void on_btnCopyAddress_clicked()
void setClipboard(const QString &str)
void setInfo(const SendCoinsRecipient &info)
QString getWalletName() const
void displayUnitChanged(int unit)
static QString formatHtmlWithUnit(int unit, const Amount amount, bool plussign=false, SeparatorStyle separators=separatorStandard)
Format as HTML string (with unit)
Interface to Bitcoin wallet from Qt view code.
void on_btnCopyURI_clicked()
OptionsModel * getOptionsModel()
void setModel(WalletModel *model)