| 140 | } |
| 141 | |
| 142 | void YACReaderNavigationController::loadLabelInfo(const QModelIndex &modelIndex) |
| 143 | { |
| 144 | qulonglong id = modelIndex.data(ReadingListModel::IDRole).toULongLong(); |
| 145 | // check comics in label with id = id |
| 146 | libraryWindow->comicsModel->setupLabelModelData(id, libraryWindow->foldersModel->getDatabase()); |
| 147 | contentViewsManager->comicsView->setModel(libraryWindow->comicsModel); |
| 148 | |
| 149 | // configure views |
| 150 | if (libraryWindow->comicsModel->rowCount() > 0) { |
| 151 | // updateView |
| 152 | contentViewsManager->showComicsView(); |
| 153 | libraryWindow->disableComicsActions(false); |
| 154 | } else { |
| 155 | // showEmptyFolder |
| 156 | // loadEmptyLabelInfo(); //there is no info in an empty label by now, TODO design something |
| 157 | contentViewsManager->emptyLabelWidget->setColor((YACReader::LabelColors)modelIndex.data(ReadingListModel::LabelColorRole).toInt()); |
| 158 | contentViewsManager->showEmptyLabelView(); |
| 159 | libraryWindow->disableComicsActions(true); |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | void YACReaderNavigationController::loadReadingListInfo(const QModelIndex &modelIndex) |
| 164 | { |
nothing calls this directly
no test coverage detected