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