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

Method probeContinuousBufferedPages

YACReader/viewer.cpp:1371–1384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1369}
1370
1371void Viewer::probeContinuousBufferedPages()
1372{
1373 if (!render->hasLoadedComic()) {
1374 return;
1375 }
1376
1377 const int totalPages = static_cast<int>(render->numPages());
1378 for (int i = 0; i < totalPages; ++i) {
1379 const QImage *img = continuousPageProvider->image(i);
1380 if (img && !img->isNull()) {
1381 continuousViewModel->setPageNaturalSize(i, img->size());
1382 }
1383 }
1384}
1385
1386void Viewer::applyContinuousStateToUi()
1387{

Callers

nothing calls this directly

Calls 4

hasLoadedComicMethod · 0.80
imageMethod · 0.80
setPageNaturalSizeMethod · 0.80
numPagesMethod · 0.45

Tested by

no test coverage detected