| 262 | } |
| 263 | |
| 264 | void copyEntryData(const QAbstractItemView *view, int column, int role) |
| 265 | { |
| 266 | if(!view || !view->selectionModel()) |
| 267 | return; |
| 268 | QModelIndexList selection = view->selectionModel()->selectedRows(column); |
| 269 | |
| 270 | if(!selection.isEmpty()) |
| 271 | { |
| 272 | // Copy first item |
| 273 | setClipboard(selection.at(0).data(role).toString()); |
| 274 | } |
| 275 | } |
| 276 | |
| 277 | QList<QModelIndex> getEntryData(const QAbstractItemView *view, int column) |
| 278 | { |
no test coverage detected