MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / getAmountTitle

Method getAmountTitle

src/qt/recentrequeststablemodel.cpp:129–136  ·  view source on GitHub ↗

Gets title for amount column including current display unit if optionsModel reference available. */

Source from the content-addressed store, hash-verified

127
128/** Gets title for amount column including current display unit if optionsModel reference available. */
129QString RecentRequestsTableModel::getAmountTitle()
130{
131 if (!walletModel->getOptionsModel()) return {};
132 return tr("Requested") +
133 QLatin1String(" (") +
134 BitcoinUnits::shortName(this->walletModel->getOptionsModel()->getDisplayUnit()) +
135 QLatin1Char(')');
136}
137
138QModelIndex RecentRequestsTableModel::index(int row, int column, const QModelIndex &parent) const
139{

Callers

nothing calls this directly

Calls 2

getDisplayUnitMethod · 0.80
getOptionsModelMethod · 0.45

Tested by

no test coverage detected