MCPcopy Create free account
hub / github.com/YACReader/yacreader / load

Method load

YACReaderLibrary/comic_vine/select_comic.cpp:66–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void 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
88void SelectComic::loadNextPage()
89{

Callers 5

setDataMethod · 0.45
showSelectVolumeMethod · 0.45
showSelectComicMethod · 0.45
serviceMethod · 0.45
serviceMethod · 0.45

Calls 4

setModelMethod · 0.45
rowCountMethod · 0.45
indexMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected