| 187 | } |
| 188 | |
| 189 | void 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 | |
| 200 | float TouchCursor::touchPosOffsetPx() const |
| 201 | { |
no test coverage detected