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

Method settingsChanged

src/tools/tool.cpp:370–377  ·  view source on GitHub ↗

slot

Source from the content-addressed store, hash-verified

368
369// slot
370void MapEditorTool::settingsChanged()
371{
372 click_tolerance = Settings::getInstance().getMapEditorClickTolerancePx();
373 start_drag_distance = Settings::getInstance().getStartDragDistancePx();
374 scale_factor = calculateScaleFactor();
375 point_handles.setScaleFactor(scale_factor);
376 draw_on_right_click = Settings::getInstance().getSettingCached(Settings::MapEditor_DrawLastPointOnRightClick).toBool();
377}
378
379
380} // namespace OpenOrienteering

Callers

nothing calls this directly

Calls 5

calculateScaleFactorFunction · 0.85
setScaleFactorMethod · 0.80
getSettingCachedMethod · 0.80

Tested by

no test coverage detected