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

Method setZoomFactor

YACReader/viewer.cpp:522–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520}
521
522void Viewer::setZoomFactor(int z)
523{
524 // this function is mostly used to reset the zoom after a fitmode switch
525 if (z > 500)
526 zoom = 500;
527 else if (z < 30)
528 zoom = 30;
529 else
530 zoom = z;
531
532 emit zoomUpdated(zoom);
533}
534
535void Viewer::updateVerticalScrollBar()
536{

Callers 9

fitToWidthMethod · 0.45
fitToHeightMethod · 0.45
fitToPageSwitchMethod · 0.45
resetZoomLevelMethod · 0.45
increaseZoomFactorMethod · 0.45
decreaseZoomFactorMethod · 0.45
updateZoomRatioMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected