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

Method increaseZoomFactor

YACReader/viewer.cpp:485–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483}
484
485void Viewer::increaseZoomFactor()
486{
487 zoom = std::min(zoom + 10, 500);
488
489 if (continuousScroll) {
490 continuousViewModel->setZoomFactor(zoom);
491 continuousWidget->invalidateScaledImageCache();
492 } else {
493 updateContentSize();
494 }
495 notificationsLabel->setText(QString::number(getZoomFactor()) + "%");
496 notificationsLabel->flash();
497
498 emit zoomUpdated(zoom);
499}
500void Viewer::decreaseZoomFactor()
501{
502 zoom = std::max(zoom - 10, 30);

Callers 1

increasePageZoomLevelMethod · 0.80

Calls 4

flashMethod · 0.80
setZoomFactorMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected