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

Method keyRelease

src/tools/edit_point_tool.cpp:470–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

468
469
470bool EditPointTool::keyRelease(QKeyEvent* event)
471{
472 if (text_editor && text_editor->keyReleaseEvent(event))
473 {
474 return true;
475 }
476
477 switch(event->key())
478 {
479 case Qt::Key_Control:
480 angle_helper->setActive(false);
481 if (editingInProgress())
482 reapplyConstraintHelpers();
483 updateStatusText();
484 return false; // not consuming Ctrl
485
486 case Qt::Key_Shift:
487 snap_helper->setFilter(SnappingToolHelper::NoSnapping);
488 if (hoveringOverCurveHandle())
489 reapplyConstraintHelpers();
490 else if (editingInProgress())
491 reapplyConstraintHelpers();
492 updateStatusText();
493 return false; // not consuming Shift
494
495 case Qt::Key_Space:
496 if (event->modifiers().testFlag(Qt::ControlModifier))
497 return true;
498
499 switch_dash_points = false;
500 if (dash_points_button)
501 dash_points_button->setChecked(switch_dash_points);
502 updateStatusText();
503 return true;
504
505 }
506 return false;
507}
508
509
510bool EditPointTool::inputMethodEvent(QInputMethodEvent* event)

Callers

nothing calls this directly

Calls 5

keyMethod · 0.80
setFilterMethod · 0.80
testFlagMethod · 0.80
keyReleaseEventMethod · 0.45
setActiveMethod · 0.45

Tested by

no test coverage detected