MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / zoomSteps

Method zoomSteps

src/core/map_view.cpp:298–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298void MapView::zoomSteps(double num_steps, const QPointF& cursor_pos_view)
299{
300 auto zoom_to = getZoom() * pow(sqrt(2.0), num_steps);
301 setZoom(zoom_to, cursor_pos_view);
302}
303
304void MapView::zoomSteps(double num_steps)
305{

Callers 3

wheelEventMethod · 0.80
zoomInMethod · 0.80
zoomOutMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected