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

Method goTo

YACReader/viewer.cpp:368–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366 goTo(this->render->numPages() - 1);
367}
368void Viewer::goTo(unsigned int page)
369{
370 direction = 1; // in "go to" direction is always fordward
371
372 if (continuousScroll) {
373 lastCenterPage = page;
374 continuousViewModel->setAnchorPage(static_cast<int>(page));
375 render->goTo(page);
376 scrollToCurrentContinuousPage();
377 return;
378 }
379
380 render->goTo(page);
381}
382
383void Viewer::onImageOptionsChanged()
384{

Callers 3

keyPressEventMethod · 0.45

Calls 1

setAnchorPageMethod · 0.80

Tested by

no test coverage detected