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

Method keyReleaseEvent

src/openms_gui/source/VISUAL/TOPPASWidget.cpp:158–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156 }
157
158 void TOPPASWidget::keyReleaseEvent(QKeyEvent * e)
159 {
160 if (e->key() == Qt::Key_Control)
161 {
162 setDragMode(QGraphicsView::ScrollHandDrag);
163 //color of hovering edge may change
164 TOPPASEdge* hover_edge = scene_->getHoveringEdge();
165 if (hover_edge)
166 {
167 hover_edge->update();
168 }
169 e->accept();
170 }
171 }
172
173 void TOPPASWidget::leaveEvent(QEvent * /*e*/)
174 {

Callers

nothing calls this directly

Calls 2

getHoveringEdgeMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected