MCPcopy Create free account
hub / github.com/cpvrlab/ImagePlay / zoomFit

Method zoomFit

ImagePlay/src/IPImageViewer.cpp:284–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284void IPImageViewer::zoomFit()
285{
286 _zoomFitMode = true;
287
288 _graphicsView->fitInView(_pixmapItem->boundingRect(), Qt::KeepAspectRatio);
289
290 _scale = _graphicsView->matrix().m11();
291}
292
293void IPImageViewer::zoomReset()
294{

Callers 2

zoomAllViewersMethod · 0.80
tabChangedMethod · 0.80

Calls 1

boundingRectMethod · 0.45

Tested by

no test coverage detected