MCPcopy Create free account
hub / github.com/MITK/MITK / keyPressEvent

Method keyPressEvent

Modules/QtWidgetsExt/src/QmitkPointListView.cpp:196–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196void QmitkPointListView::keyPressEvent(QKeyEvent *e)
197{
198 if (m_PointListModel == nullptr)
199 return;
200
201 int key = e->key();
202
203 switch (key)
204 {
205 case Qt::Key_F2:
206 m_PointListModel->MoveSelectedPointUp();
207 break;
208 case Qt::Key_F3:
209 m_PointListModel->MoveSelectedPointDown();
210 break;
211 case Qt::Key_Delete:
212 m_PointListModel->RemoveSelectedPoint();
213 break;
214 default:
215 break;
216 }
217}
218
219void QmitkPointListView::wheelEvent(QWheelEvent *event)
220{

Callers

nothing calls this directly

Calls 3

MoveSelectedPointUpMethod · 0.45
MoveSelectedPointDownMethod · 0.45
RemoveSelectedPointMethod · 0.45

Tested by

no test coverage detected