| 399 | } |
| 400 | |
| 401 | void ClassicComicsView::addItemsToFlow(const QModelIndex &parent, int from, int to) |
| 402 | { |
| 403 | Q_UNUSED(parent); |
| 404 | for (int i = from; i <= to; i++) { |
| 405 | auto coverPath = model->index(i, 0).data(ComicModel::CoverPathRole).toUrl().toLocalFile(); |
| 406 | comicFlow->add(coverPath, i); |
| 407 | } |
| 408 | } |
| 409 | |
| 410 | void ClassicComicsView::closeEvent(QCloseEvent *event) |
| 411 | { |