Changeset View
Changeset View
Standalone View
Standalone View
src/qt/sendcoinsdialog.cpp
Show First 20 Lines • Show All 351 Lines • ▼ Show 20 Lines | if (txFee > Amount::zero()) { | ||||
model->getOptionsModel()->getDisplayUnit(), txFee)); | model->getOptionsModel()->getDisplayUnit(), txFee)); | ||||
questionString.append("</span><br />"); | questionString.append("</span><br />"); | ||||
} | } | ||||
// add total amount in all subdivision units | // add total amount in all subdivision units | ||||
questionString.append("<hr />"); | questionString.append("<hr />"); | ||||
Amount totalAmount = currentTransaction.getTotalTransactionAmount() + txFee; | Amount totalAmount = currentTransaction.getTotalTransactionAmount() + txFee; | ||||
QStringList alternativeUnits; | QStringList alternativeUnits; | ||||
for (BitcoinUnits::Unit u : BitcoinUnits::availableUnits()) { | for (const BitcoinUnits::Unit u : BitcoinUnits::availableUnits()) { | ||||
if (u != model->getOptionsModel()->getDisplayUnit()) { | if (u != model->getOptionsModel()->getDisplayUnit()) { | ||||
alternativeUnits.append( | alternativeUnits.append( | ||||
BitcoinUnits::formatHtmlWithUnit(u, totalAmount)); | BitcoinUnits::formatHtmlWithUnit(u, totalAmount)); | ||||
} | } | ||||
} | } | ||||
questionString.append( | questionString.append( | ||||
QString("<b>%1</b>: <b>%2</b>") | QString("<b>%1</b>: <b>%2</b>") | ||||
.arg(tr("Total Amount")) | .arg(tr("Total Amount")) | ||||
▲ Show 20 Lines • Show All 577 Lines • Show Last 20 Lines |