| 64 | } |
| 65 | |
| 66 | void SelectComic::load(const QString &json, const QString &volumeId) |
| 67 | { |
| 68 | auto tempM = new VolumeComicsModel(); |
| 69 | tempM->load(json); |
| 70 | tableComics->setModel(tempM); |
| 71 | |
| 72 | if (model != 0) |
| 73 | delete model; |
| 74 | |
| 75 | model = tempM; |
| 76 | |
| 77 | if (model->rowCount() > 0) { |
| 78 | tableComics->selectRow(0); |
| 79 | loadComicInfo(model->index(0, 0)); |
| 80 | } |
| 81 | |
| 82 | tableComics->resizeColumnToContents(0); |
| 83 | |
| 84 | currentVolumeId = volumeId; |
| 85 | paginator->update(json); |
| 86 | } |
| 87 | |
| 88 | void SelectComic::loadNextPage() |
| 89 | { |
no test coverage detected