Index: sources/gui/qml/components/RangeSlider.qml =================================================================== diff -u -rbbbd9cbf805779ef498a8f59cc74b9b597802a55 -rdf8cd7f15c5647a2d5955be0e548ef2b9d77abaf --- sources/gui/qml/components/RangeSlider.qml (.../RangeSlider.qml) (revision bbbd9cbf805779ef498a8f59cc74b9b597802a55) +++ sources/gui/qml/components/RangeSlider.qml (.../RangeSlider.qml) (revision df8cd7f15c5647a2d5955be0e548ef2b9d77abaf) @@ -67,6 +67,9 @@ property bool maxAdjusted : false ///< first time user adjustment happens property bool hasAdjust : false ///< if set to true then component is grayed out until both min and max are adjusted + property bool showTickmarks : true ///< Indicate whether tickMarks should be shown + property bool isTickMarksRound : false ///< Indicate whether the tickmakrs are round + onHasAdjustChanged : { setAdjusted() } @@ -265,16 +268,20 @@ Loader { id: _ticksLoader active : _root.ticks anchors.fill : parent - sourceComponent : TickMarks { + sourceComponent : _root.showTickmarks ? _tickMarkFactory : undefined + } + + Component { id:_tickMarkFactory + TickMarks { decimal : _root.decimal minimum : _root.minimum maximum : _root.maximum step : _root.step stepSnap : _root.stepSnap textColor : _root.color length : _rangeRect.height - isTickMarkRound : _root.isRoundedEnds - yDisplacement : _root.isRoundedEnds ? (-_rangeRect.height) : 0 + isTickMarkRound : _root.isTickMarksRound + yDisplacement : _root.isTickMarksRound ? (-_rangeRect.height) : 0 } }