| 179 | } |
| 180 | |
| 181 | void YACReaderNavigationController::selectedList(const QModelIndex &mi) |
| 182 | { |
| 183 | // A proxy is used |
| 184 | QModelIndex modelIndex = libraryWindow->listsModelProxy->mapToSource(mi); |
| 185 | |
| 186 | // update history |
| 187 | libraryWindow->historyController->updateHistory(YACReaderLibrarySourceContainer(modelIndex, YACReaderLibrarySourceContainer::List)); |
| 188 | |
| 189 | // when a list is selected the search mode has to be reset |
| 190 | if (libraryWindow->exitSearchMode()) { |
| 191 | |
| 192 | libraryWindow->listsView->scrollTo(mi, QAbstractItemView::PositionAtTop); |
| 193 | libraryWindow->listsView->setCurrentIndex(mi); |
| 194 | } |
| 195 | |
| 196 | loadListInfo(modelIndex); |
| 197 | |
| 198 | libraryWindow->setToolbarTitle(modelIndex); |
| 199 | } |
| 200 | |
| 201 | void YACReaderNavigationController::reselectCurrentList() |
| 202 | { |
nothing calls this directly
no test coverage detected