MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / focusOutEvent

Method focusOutEvent

src/openms_gui/source/VISUAL/PlotCanvas.cpp:601–616  ·  view source on GitHub ↗

this does not work anymore, probably due to Qt::StrongFocus :( -- todo: delete!

Source from the content-addressed store, hash-verified

599
600 // this does not work anymore, probably due to Qt::StrongFocus :( -- todo: delete!
601 void PlotCanvas::focusOutEvent(QFocusEvent* /*e*/)
602 {
603 // Alt/Shift pressed and focus lost => change back action mode
604 if (action_mode_ != AM_TRANSLATE)
605 {
606 action_mode_ = AM_TRANSLATE;
607 emit actionModeChange();
608 }
609
610 // reset peaks
611 selected_peak_.clear();
612 measurement_start_.clear();
613
614 // update
615 update_(OPENMS_PRETTY_FUNCTION);
616 }
617
618 void PlotCanvas::leaveEvent(QEvent* /*e*/)
619 {

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected