Changeset View
Changeset View
Standalone View
Standalone View
src/qt/sendcoinsdialog.cpp
Show First 20 Lines • Show All 310 Lines • ▼ Show 20 Lines | if (prepareStatus.status != WalletModel::OK) { | ||||
return; | return; | ||||
} | } | ||||
Amount txFee = currentTransaction.getTransactionFee(); | Amount txFee = currentTransaction.getTransactionFee(); | ||||
// Format confirmation message | // Format confirmation message | ||||
QStringList formatted; | QStringList formatted; | ||||
for (const SendCoinsRecipient &rcp : currentTransaction.getRecipients()) { | for (const SendCoinsRecipient &rcp : currentTransaction.getRecipients()) { | ||||
// generate bold amount string | // generate bold amount string with wallet name in case of multiwallet | ||||
QString amount = | QString amount = | ||||
"<b>" + BitcoinUnits::formatHtmlWithUnit( | "<b>" + BitcoinUnits::formatHtmlWithUnit( | ||||
model->getOptionsModel()->getDisplayUnit(), rcp.amount); | model->getOptionsModel()->getDisplayUnit(), rcp.amount); | ||||
if (model->isMultiwallet()) { | |||||
amount.append( | |||||
" <u>" + | |||||
tr("from wallet %1") | |||||
.arg(GUIUtil::HtmlEscape(model->getWalletName())) + | |||||
"</u> "); | |||||
} | |||||
amount.append("</b>"); | amount.append("</b>"); | ||||
// generate monospace address string | // generate monospace address string | ||||
QString address = | QString address = | ||||
"<span style='font-family: monospace;'>" + rcp.address; | "<span style='font-family: monospace;'>" + rcp.address; | ||||
address.append("</span>"); | address.append("</span>"); | ||||
QString recipientElement; | QString recipientElement; | ||||
▲ Show 20 Lines • Show All 673 Lines • Show Last 20 Lines |