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

Method updateDrawing

src/gui/map/map_widget.cpp:558–564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556}
557
558void MapWidget::updateDrawing(const QRectF& map_rect, int pixel_border)
559{
560 QRect viewport_rect = calculateViewportBoundingBox(map_rect, pixel_border);
561
562 if (viewport_rect.intersects(rect()))
563 update(viewport_rect);
564}
565
566void MapWidget::updateMapRect(const QRectF& map_rect, int pixel_border, QRect& cache_dirty_rect)
567{

Callers 1

updateMapWidgetMethod · 0.45

Calls 1

intersectsMethod · 0.80

Tested by

no test coverage detected