MCPcopy Create free account
hub / github.com/KDE/gwenview / zoomIn

Method zoomIn

lib/documentview/documentview.cpp:731–744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

729}
730
731void DocumentView::zoomIn(QPointF center)
732{
733 if (center == QPointF(-1, -1)) {
734 center = d->cursorPosition();
735 }
736 qreal currentZoom = d->mAdapter->zoom();
737
738 for (qreal zoom : qAsConst(d->mZoomSnapValues)) {
739 if (zoom > currentZoom + REAL_DELTA) {
740 d->setZoom(zoom, center);
741 return;
742 }
743 }
744}
745
746void DocumentView::zoomContinuous(int delta, QPointF center)
747{

Callers

nothing calls this directly

Calls 3

cursorPositionMethod · 0.80
zoomMethod · 0.45
setZoomMethod · 0.45

Tested by

no test coverage detected