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

Method fitToWidth

YACReader/main_window_viewer.cpp:1251–1256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1249 toolbars = true;
1250}
1251void MainWindowViewer::fitToWidth()
1252{
1253 Configuration::getConfiguration().setFitMode(YACReader::FitMode::ToWidth);
1254 viewer->setZoomFactor(100);
1255 viewer->updatePage();
1256}
1257void MainWindowViewer::fitToHeight()
1258{
1259 Configuration::getConfiguration().setFitMode(YACReader::FitMode::ToHeight);

Callers

nothing calls this directly

Calls 3

setFitModeMethod · 0.80
updatePageMethod · 0.80
setZoomFactorMethod · 0.45

Tested by

no test coverage detected