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

Method applyMapTransform

src/gui/map/map_widget.cpp:195–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193
194
195void MapWidget::applyMapTransform(QPainter* painter) const
196{
197 painter->translate(width() / 2.0 + getMapView()->panOffset().x(),
198 height() / 2.0 + getMapView()->panOffset().y());
199 painter->setWorldTransform(getMapView()->worldTransform(), true);
200}
201
202QRectF MapWidget::viewportToView(const QRect& input) const
203{

Callers 3

drawImplMethod · 0.80
drawImplMethod · 0.80
paintMethod · 0.80

Calls 4

xMethod · 0.80
yMethod · 0.80
translateMethod · 0.45
panOffsetMethod · 0.45

Tested by

no test coverage detected