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

Method wheelEvent

Modules/QtWidgetsExt/src/QmitkSliceWidget.cpp:193–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193void QmitkSliceWidget::wheelEvent(QWheelEvent *e)
194{
195 int val = m_Controls->sliceNavigationWidget->GetPos();
196
197 if (e->angleDelta().y() > 0)
198 {
199 m_Controls->sliceNavigationWidget->SetPos(val + 1);
200 }
201 else
202 {
203 if (val > 0)
204 m_Controls->sliceNavigationWidget->SetPos(val - 1);
205 }
206}
207
208void QmitkSliceWidget::ChangeView(QAction *val)
209{

Callers

nothing calls this directly

Calls 2

GetPosMethod · 0.45
SetPosMethod · 0.45

Tested by

no test coverage detected