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

Method setRead

YACReaderLibrary/yacreader_comic_info_helper.cpp:21–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21void YACReaderComicInfoHelper::setRead(int index, bool read)
22{
23 YACReaderComicReadStatus status;
24 read ? (status = YACReaderComicReadStatus::Read) : (status = YACReaderComicReadStatus::Unread);
25
26 if (model != nullptr)
27 model->setComicsRead(QModelIndexList() << model->index(index, 0), status);
28}
29
30void YACReaderComicInfoHelper::addToFavorites(int index)
31{

Callers 1

Calls 2

setComicsReadMethod · 0.80
indexMethod · 0.45

Tested by

no test coverage detected