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

Method load

YACReaderLibrary/comic_vine/select_volume.cpp:93–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void SelectVolume::load(const QString &json, const VolumeSearchQuery &searchQuery)
94{
95 auto tempM = new VolumesModel();
96 tempM->load(json);
97 // tableVolumes->setModel(tempM);
98
99 proxyModel->setSourceModel(tempM);
100 tableVolumes->setModel(proxyModel);
101 tableVolumes->sortByColumn(0, Qt::AscendingOrder);
102 tableVolumes->resizeColumnsToContents();
103
104 if (model != 0)
105 delete model;
106
107 model = tempM;
108
109 if (model->rowCount() > 0) {
110 tableVolumes->selectRow(0);
111 loadVolumeInfo(proxyModel->index(0, 0));
112 }
113
114 tableVolumes->setColumnWidth(0, 350);
115
116 currentSearchQuery = searchQuery;
117 paginator->update(json);
118}
119
120void SelectVolume::loadNextPage()
121{

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected