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

Method updateBookmarkImage

common/comic.cpp:244–264  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

242}
243//-----------------------------------------------------------------------------
244void Comic::updateBookmarkImage(int index)
245{
246 if (bm == nullptr) {
247 return;
248 }
249
250 if (bm->isBookmark(index)) {
251 QImage p;
252 p.loadFromData(_pages[index]);
253 bm->setBookmark(index, p);
254 emit bookmarksUpdated();
255 // emit bookmarksLoaded(*bm);
256 }
257 if (bm->getLastPage() == index) {
258 QImage p;
259 p.loadFromData(_pages[index]);
260 bm->setLastPage(index, p);
261 emit bookmarksUpdated();
262 // emit bookmarksLoaded(*bm);
263 }
264}
265//-----------------------------------------------------------------------------
266void Comic::setPageLoaded(int page)
267{

Callers

nothing calls this directly

Calls 4

isBookmarkMethod · 0.80
getLastPageMethod · 0.80
setLastPageMethod · 0.80
setBookmarkMethod · 0.45

Tested by

no test coverage detected