| 226 | } |
| 227 | |
| 228 | void ReceiveCoinsDialog::on_removeRequestButton_clicked() |
| 229 | { |
| 230 | if(!model || !model->getRecentRequestsTableModel() || !ui->recentRequestsView->selectionModel()) |
| 231 | return; |
| 232 | QModelIndexList selection = ui->recentRequestsView->selectionModel()->selectedRows(); |
| 233 | if(selection.empty()) |
| 234 | return; |
| 235 | // correct for selection mode ContiguousSelection |
| 236 | QModelIndex firstIndex = selection.at(0); |
| 237 | model->getRecentRequestsTableModel()->removeRows(firstIndex.row(), selection.length(), firstIndex.parent()); |
| 238 | } |
| 239 | |
| 240 | QModelIndex ReceiveCoinsDialog::selectedRow() |
| 241 | { |
nothing calls this directly
no test coverage detected