| 74 | } |
| 75 | |
| 76 | void YACReaderComicsSelectionHelper::selectAll() |
| 77 | { |
| 78 | QModelIndex top = model->index(0, 0); |
| 79 | QModelIndex bottom = model->index(model->rowCount() - 1, 0); |
| 80 | QItemSelection selection(top, bottom); |
| 81 | _selectionModel->select(selection, QItemSelectionModel::Select | QItemSelectionModel::Rows); |
| 82 | |
| 83 | emit selectionChanged(); |
| 84 | } |
| 85 | |
| 86 | QModelIndexList YACReaderComicsSelectionHelper::selectedRows(int column) const |
| 87 | { |