Gets title for amount column including current display unit if optionsModel reference available. */
| 127 | |
| 128 | /** Gets title for amount column including current display unit if optionsModel reference available. */ |
| 129 | QString 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 | |
| 138 | QModelIndex RecentRequestsTableModel::index(int row, int column, const QModelIndex &parent) const |
| 139 | { |
nothing calls this directly
no test coverage detected