Changeset View
Changeset View
Standalone View
Standalone View
src/qt/sendcoinsdialog.cpp
Show First 20 Lines • Show All 343 Lines • ▼ Show 20 Lines | if (txFee > Amount::zero()) { | ||||
1000) + | 1000) + | ||||
" kB)"); | " kB)"); | ||||
} | } | ||||
// 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( | ||||
tr("Total Amount %1") | tr("Total Amount %1") | ||||
.arg(BitcoinUnits::formatHtmlWithUnit( | .arg(BitcoinUnits::formatHtmlWithUnit( | ||||
▲ Show 20 Lines • Show All 576 Lines • Show Last 20 Lines |