-----------------------------------------------------------------------------
| 242 | } |
| 243 | //----------------------------------------------------------------------------- |
| 244 | void 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 | //----------------------------------------------------------------------------- |
| 266 | void Comic::setPageLoaded(int page) |
| 267 | { |
nothing calls this directly
no test coverage detected