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

Method updateMapWidget

src/gui/touch_cursor.cpp:189–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189void TouchCursor::updateMapWidget(bool delayed)
190{
191 QRectF fake_rect = QRectF(cursor_coord.x(), cursor_coord.y(), 0.0001f, 0.0001f);
192 float pixel_border = qMax(touchPosOffsetPx() + controlRingRadiusPx(), standardCursorRadiusPx()) + controlRingStrokeRadiusPx() + 1;
193
194 if (delayed)
195 map_widget->updateDrawingLater(fake_rect, pixel_border);
196 else
197 map_widget->updateDrawing(fake_rect, pixel_border);
198}
199
200float TouchCursor::touchPosOffsetPx() const
201{

Callers 2

setToolMethod · 0.45
enableTouchCursorMethod · 0.45

Calls 5

xMethod · 0.80
yMethod · 0.80
updateDrawingLaterMethod · 0.80
QRectFClass · 0.70
updateDrawingMethod · 0.45

Tested by

no test coverage detected