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