| 197 | } |
| 198 | |
| 199 | void ReceiveCoinsDialog::on_removeRequestButton_clicked() |
| 200 | { |
| 201 | if(!model || !model->getRecentRequestsTableModel() || !ui->recentRequestsView->selectionModel()) |
| 202 | return; |
| 203 | QModelIndexList selection = ui->recentRequestsView->selectionModel()->selectedRows(); |
| 204 | if(selection.empty()) |
| 205 | return; |
| 206 | // correct for selection mode ContiguousSelection |
| 207 | QModelIndex firstIndex = selection.at(0); |
| 208 | model->getRecentRequestsTableModel()->removeRows(firstIndex.row(), selection.length(), firstIndex.parent()); |
| 209 | } |
| 210 | |
| 211 | // We override the virtual resizeEvent of the QWidget to adjust tables column |
| 212 | // sizes as the tables width is proportional to the dialogs width. |
nothing calls this directly
no test coverage detected