| 57 | } |
| 58 | |
| 59 | QModelIndex YACReaderComicsSelectionHelper::currentIndex() |
| 60 | { |
| 61 | if (!_selectionModel) |
| 62 | return QModelIndex(); |
| 63 | |
| 64 | QModelIndexList indexes = _selectionModel->selectedRows(); |
| 65 | if (indexes.length() > 0) |
| 66 | return indexes[0]; |
| 67 | |
| 68 | this->selectIndex(0); |
| 69 | indexes = _selectionModel->selectedRows(); |
| 70 | if (indexes.length() > 0) |
| 71 | return indexes[0]; |
| 72 | else |
| 73 | return QModelIndex(); |
| 74 | } |
| 75 | |
| 76 | void YACReaderComicsSelectionHelper::selectAll() |
| 77 | { |
nothing calls this directly
no test coverage detected