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

Method dirtyRect

src/tools/tool_helpers.cpp:677–682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

675
676
677QRectF AzimuthInfoHelper::dirtyRect(MapWidget* widget, const MapCoordF& pos_map) const
678{
679 auto map_rect = QRectF{widget->viewportToMapF(display_rect.topLeft()),
680 widget->viewportToMapF(display_rect.bottomRight())};
681 return map_rect.translated(pos_map - map_rect.center());
682}
683
684
685void AzimuthInfoHelper::draw(QPainter* painter, const MapWidget* widget, const Map* map, const MapCoordF& start_pos, const MapCoordF& end_pos)

Callers 1

updateDirtyRectMethod · 0.80

Calls 2

viewportToMapFMethod · 0.80
centerMethod · 0.80

Tested by

no test coverage detected