| 19 | } |
| 20 | |
| 21 | void 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 | |
| 30 | void YACReaderComicInfoHelper::addToFavorites(int index) |
| 31 | { |
no test coverage detected