43 this->m_Value =
value;
138 if ( value < -10000000.0 )
142 else if ( value > 10000000.0 )
148 return QString::number( value,
'f', 2 );
196 qmlRegisterType<QmlMitkSliderNavigatorItem>(
"Mitk.Views", 1, 0,
"SliderNavigator");
QString ClippedValueToString(float value)
Converts the passed value to a QString representation.
void ShowLabels(bool show)
void Refetch()
Updates the slider with the recent changes applied to the navigator.
void SetInverseDirection(bool inverseDirection)
QString GetMinValueLabel()
Returns range-minimum (displayed as label left of slider if enabled)
void SetLabelUnit(const char *unit)
Set range unit (e.g. mm or ms) which will be displayed below range labels if enabled.
mitk::Stepper::Pointer m_Stepper
void SetLabelValuesValid(bool minValid, bool maxValid)
void ShowLabelUnit(bool show)
En-/disables displaying of the unit label (range will be displayed without unit if enabled)...
Helper class to step through a list.
QmlMitkSliderNavigatorItem(QQuickItem *parent=nullptr)
void SetStepper(mitk::Stepper *stepper)
void setValue(double value)
void SetLabelValues(float min, float max)
Set range minimum and maximum (displayed as labels left and right of slider if enabled) ...
QString GetMaxValueLabel()