| 80 | } |
| 81 | |
| 82 | void YACReaderNavigationController::loadListInfo(const QModelIndex &modelIndex) |
| 83 | { |
| 84 | switch (modelIndex.data(ReadingListModel::TypeListsRole).toInt()) { |
| 85 | case ReadingListModel::SpecialList: |
| 86 | loadSpecialListInfo(modelIndex); |
| 87 | break; |
| 88 | |
| 89 | case ReadingListModel::Label: |
| 90 | loadLabelInfo(modelIndex); |
| 91 | break; |
| 92 | |
| 93 | case ReadingListModel::ReadingList: |
| 94 | loadReadingListInfo(modelIndex); |
| 95 | break; |
| 96 | } |
| 97 | |
| 98 | // if a list is selected, foldersView selection must be cleared |
| 99 | libraryWindow->foldersView->clearSelection(); |
| 100 | } |
| 101 | |
| 102 | void YACReaderNavigationController::loadSpecialListInfo(const QModelIndex &modelIndex) |
| 103 | { |
no test coverage detected