| 238 | } |
| 239 | |
| 240 | QModelIndex ReceiveCoinsDialog::selectedRow() |
| 241 | { |
| 242 | if(!model || !model->getRecentRequestsTableModel() || !ui->recentRequestsView->selectionModel()) |
| 243 | return QModelIndex(); |
| 244 | QModelIndexList selection = ui->recentRequestsView->selectionModel()->selectedRows(); |
| 245 | if(selection.empty()) |
| 246 | return QModelIndex(); |
| 247 | // correct for selection mode ContiguousSelection |
| 248 | QModelIndex firstIndex = selection.at(0); |
| 249 | return firstIndex; |
| 250 | } |
| 251 | |
| 252 | // copy column of selected row to clipboard |
| 253 | void ReceiveCoinsDialog::copyColumnToClipboard(int column) |
nothing calls this directly
no test coverage detected