| 233 | } |
| 234 | |
| 235 | void copyEntryData(QAbstractItemView *view, int column, int role) |
| 236 | { |
| 237 | if(!view || !view->selectionModel()) |
| 238 | return; |
| 239 | QModelIndexList selection = view->selectionModel()->selectedRows(column); |
| 240 | |
| 241 | if(!selection.isEmpty()) |
| 242 | { |
| 243 | // Copy first item |
| 244 | setClipboard(selection.at(0).data(role).toString()); |
| 245 | } |
| 246 | } |
| 247 | |
| 248 | QList<QModelIndex> getEntryData(QAbstractItemView *view, int column) |
| 249 | { |
no test coverage detected