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

Method dragFinish

src/tools/edit_line_tool.cpp:308–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308void EditLineTool::dragFinish()
309{
310 if (editingInProgress())
311 {
312 finishEditing();
313 angle_helper->setActive(false);
314 snap_helper->setFilter(SnappingToolHelper::NoSnapping);
315 updateStatusText();
316 }
317 else if (box_selection)
318 {
319 object_selector->selectBox(click_pos_map, cur_pos_map, active_modifiers & Qt::ShiftModifier);
320 box_selection = false;
321 }
322}
323
324void EditLineTool::dragCanceled()
325{

Callers

nothing calls this directly

Calls 3

setFilterMethod · 0.80
selectBoxMethod · 0.80
setActiveMethod · 0.45

Tested by

no test coverage detected