Changeset View
Changeset View
Standalone View
Standalone View
src/qt/recentrequeststablemodel.cpp
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | if (role == Qt::DisplayRole || role == Qt::EditRole) { | ||||
case Amount: | case Amount: | ||||
if (rec->recipient.amount == ::Amount::zero() && | if (rec->recipient.amount == ::Amount::zero() && | ||||
role == Qt::DisplayRole) { | role == Qt::DisplayRole) { | ||||
return tr("(no amount requested)"); | return tr("(no amount requested)"); | ||||
} else if (role == Qt::EditRole) { | } else if (role == Qt::EditRole) { | ||||
return BitcoinUnits::format( | return BitcoinUnits::format( | ||||
walletModel->getOptionsModel()->getDisplayUnit(), | walletModel->getOptionsModel()->getDisplayUnit(), | ||||
rec->recipient.amount, false, | rec->recipient.amount, false, | ||||
BitcoinUnits::separatorNever); | BitcoinUnits::SeparatorStyle::NEVER); | ||||
} else { | } else { | ||||
return BitcoinUnits::format( | return BitcoinUnits::format( | ||||
walletModel->getOptionsModel()->getDisplayUnit(), | walletModel->getOptionsModel()->getDisplayUnit(), | ||||
rec->recipient.amount); | rec->recipient.amount); | ||||
} | } | ||||
} | } | ||||
} else if (role == Qt::TextAlignmentRole) { | } else if (role == Qt::TextAlignmentRole) { | ||||
if (index.column() == Amount) { | if (index.column() == Amount) { | ||||
▲ Show 20 Lines • Show All 153 Lines • Show Last 20 Lines |