Changeset View
Changeset View
Standalone View
Standalone View
src/qt/receiverequestdialog.cpp
Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | void ReceiveRequestDialog::update() { | ||||
ui->btnSaveAs->setEnabled(false); | ui->btnSaveAs->setEnabled(false); | ||||
QString html; | QString html; | ||||
html += "<html><font face='verdana, arial, helvetica, sans-serif'>"; | html += "<html><font face='verdana, arial, helvetica, sans-serif'>"; | ||||
html += "<b>" + tr("Payment information") + "</b><br>"; | html += "<b>" + tr("Payment information") + "</b><br>"; | ||||
html += "<b>" + tr("URI") + "</b>: "; | html += "<b>" + tr("URI") + "</b>: "; | ||||
html += "<a href=\"" + uri + "\">" + GUIUtil::HtmlEscape(uri) + "</a><br>"; | html += "<a href=\"" + uri + "\">" + GUIUtil::HtmlEscape(uri) + "</a><br>"; | ||||
html += "<b>" + tr("Address") + "</b>: " + | html += "<b>" + tr("Address") + "</b>: " + | ||||
GUIUtil::HtmlEscape(info.address) + "<br>"; | GUIUtil::HtmlEscape(info.address) + "<br>"; | ||||
if (info.amount) | if (info.amount != 0) | ||||
html += "<b>" + tr("Amount") + "</b>: " + | html += "<b>" + tr("Amount") + "</b>: " + | ||||
BitcoinUnits::formatHtmlWithUnit(model->getDisplayUnit(), | BitcoinUnits::formatHtmlWithUnit(model->getDisplayUnit(), | ||||
info.amount) + | info.amount) + | ||||
"<br>"; | "<br>"; | ||||
if (!info.label.isEmpty()) | if (!info.label.isEmpty()) | ||||
html += "<b>" + tr("Label") + "</b>: " + | html += "<b>" + tr("Label") + "</b>: " + | ||||
GUIUtil::HtmlEscape(info.label) + "<br>"; | GUIUtil::HtmlEscape(info.label) + "<br>"; | ||||
if (!info.message.isEmpty()) | if (!info.message.isEmpty()) | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |