diff --git a/src/AutoPilotPlugins/PX4/ActuatorSlider.qml b/src/AutoPilotPlugins/PX4/ActuatorSlider.qml index e5deee9..ea60e04 100644 --- a/src/AutoPilotPlugins/PX4/ActuatorSlider.qml +++ b/src/AutoPilotPlugins/PX4/ActuatorSlider.qml @@ -43,7 +43,8 @@ Column { value: defaultVal updateValueWhileDragging: true anchors.horizontalCenter: parent.horizontalCenter - height: ScreenTools.defaultFontPixelHeight * _sliderHeight + height: ScreenTools.defaultFontPixelHeight * _sliderHeight + indicatorBarVisible: sendTimer.running onValueChanged: { if (blockUpdates) diff --git a/src/QmlControls/QGCSlider.qml b/src/QmlControls/QGCSlider.qml index 34f4fc8..7a41964 100644 --- a/src/QmlControls/QGCSlider.qml +++ b/src/QmlControls/QGCSlider.qml @@ -22,6 +22,7 @@ Slider { // Value indicator starts display from zero instead of min value property bool zeroCentered: false property bool displayValue: false + property bool indicatorBarVisible: true style: SliderStyle { groove: Item { @@ -40,6 +41,7 @@ Slider { Item { id: indicatorBar clip: true + visible: indicatorBarVisible x: _root.zeroCentered ? zeroCenteredIndicatorStart : 0 width: _root.zeroCentered ? centerIndicatorWidth : styleData.handlePosition height: parent.height