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

Method SpinBoxChanged

Modules/QtWidgets/src/QmitkSliceNavigationWidget.cpp:261–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261void QmitkSliceNavigationWidget::SpinBoxChanged(double)
262{
263 if (m_InRefetch)
264 {
265 return;
266 }
267
268 if (m_InverseDirection)
269 {
270 m_Stepper->SetPos(m_Stepper->GetSteps() - 1 - m_Controls->m_SpinBox->value());
271 }
272 else
273 {
274 m_Stepper->SetPos(m_Controls->m_SpinBox->value());
275 }
276
277 this->Refetch();
278}
279
280void QmitkSliceNavigationWidget::SetLabelValues(float min, float max)
281{

Callers

nothing calls this directly

Calls 3

RefetchMethod · 0.95
SetPosMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected