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

Method enableTouchCursor

src/gui/map/map_widget.cpp:1225–1236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1223}
1224
1225void MapWidget::enableTouchCursor(bool enabled)
1226{
1227 if (enabled && !touch_cursor)
1228 {
1229 touch_cursor.reset(new TouchCursor(this));
1230 }
1231 else if (!enabled && touch_cursor)
1232 {
1233 touch_cursor->updateMapWidget(false);
1234 touch_cursor.reset(nullptr);
1235 }
1236}
1237
1238void MapWidget::focusOutEvent(QFocusEvent* event)
1239{

Callers

nothing calls this directly

Calls 2

resetMethod · 0.45
updateMapWidgetMethod · 0.45

Tested by

no test coverage detected