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

Method getMatchingInfo

YACReaderLibrary/comic_vine/sort_volume_comics.cpp:248–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248QList<QPair<ComicDB, QString>> SortVolumeComics::getMatchingInfo()
249{
250 const auto comicList = localComicsModel->getData();
251 QList<QPair<ComicDB, QString>> l;
252
253 int index = 0;
254
255 QString id;
256 for (const auto &c : comicList) {
257 id = volumeComicsModel->getComicId(index);
258 if (!c.getFileName().isEmpty() && !id.isEmpty()) // there is a valid comic, and valid comic ID
259 {
260 l.push_back(QPair<ComicDB, QString>(c, id));
261 }
262 index++;
263 }
264
265 return l;
266}
267
268void SortVolumeComics::applyTheme(const Theme &theme)
269{

Callers 1

goNextMethod · 0.80

Calls 4

isEmptyMethod · 0.80
getFileNameMethod · 0.80
getDataMethod · 0.45
getComicIdMethod · 0.45

Tested by

no test coverage detected