| 125 | } |
| 126 | |
| 127 | void FolderContentView::setContinueReadingModel(ComicModel *model) |
| 128 | { |
| 129 | QQmlContext *ctxt = view->rootContext(); |
| 130 | |
| 131 | ctxt->setContextProperty("comicsList", model); |
| 132 | this->comicModel.reset(model); |
| 133 | |
| 134 | auto *root = view->rootObject(); |
| 135 | auto list = root ? root->findChild<QQuickItem *>(QStringLiteral("list")) : nullptr; |
| 136 | |
| 137 | if (list != nullptr) { |
| 138 | list->setProperty("currentIndex", 0); |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | void FolderContentView::reloadContent() |
| 143 | { |
no test coverage detected