Index: sources/gui/qml/components/RangeSlider.qml =================================================================== diff -u -r265ce7409a0ea99a4ae059f5ce7978c9cdb10631 -rffc5c4365ddfc2eaa178708e91f337a684b793a5 --- sources/gui/qml/components/RangeSlider.qml (.../RangeSlider.qml) (revision 265ce7409a0ea99a4ae059f5ce7978c9cdb10631) +++ sources/gui/qml/components/RangeSlider.qml (.../RangeSlider.qml) (revision ffc5c4365ddfc2eaa178708e91f337a684b793a5) @@ -46,10 +46,10 @@ property bool minVerticalEdgeVisible: true property int gapValue : 0 ///< the gap between minValue and maxValue so the minValue shall always be gap value less than maxValue and vise versa. - property real minValueLowerBound : _root.minimum ///< min value cannot be lower than this value - property real minValueUpperBound : _root.maximum ///< min value cannot be higher than this value - property real maxValueLowerBound : _root.minimum ///< max value cannot be lower than this value - property real maxValueUpperBound : _root.maximum ///< max value cannot be higher than this value + property real minValueLowerBound : 0 + property real minValueUpperBound : 0 + property real maxValueLowerBound : 0 + property real maxValueUpperBound : 0 property int curHandler : RangeSlider.HandlerOption.None ///< current active slider handler @@ -86,29 +86,6 @@ minimum : 0 maximum : 0 - /// real-time bound change should effect the current set value - onMinimumChanged: { - if ( minValueLowerBound < minimum ) { minValueLowerBound = minimum } - if ( maxValueLowerBound < minimum ) { maxValueLowerBound = minimum } - } - onMaximumChanged: { - if ( minValueUpperBound > maximum ) { minValueUpperBound = maximum } - if ( maxValueUpperBound > maximum ) { maxValueUpperBound = maximum } - } - - onMinValueLowerBoundChanged: { - if ( minValue < minValueLowerBound ) { minValue = minValueLowerBound } - } - onMinValueUpperBoundChanged: { - if ( minValue > minValueUpperBound ) { minValue = minValueUpperBound } - } - onMaxValueLowerBoundChanged: { - if ( maxValue < maxValueLowerBound ) { maxValue = maxValueLowerBound } - } - onMaxValueUpperBoundChanged: { - if ( maxValue > maxValueUpperBound ) { maxValue = maxValueUpperBound } - } - /// Lable of the minimum of range minText { visible : true