Browse Source

Made it so that raw axis monitor indicators are narrow so that they don't obscure view of the deadzones.

QGC4.4
nanthony21 7 years ago committed by Nick Anthony
parent
commit
9dd91ffc52
  1. 6
      src/VehicleSetup/JoystickConfig.qml

6
src/VehicleSetup/JoystickConfig.qml

@ -85,6 +85,7 @@ SetupPage { @@ -85,6 +85,7 @@ SetupPage {
Item {
property int axisValue: 0
property int deadbandValue: 0
property bool narrowIndicator: false
property color __barColor: qgcPal.windowShade
@ -123,8 +124,8 @@ SetupPage { @@ -123,8 +124,8 @@ SetupPage {
// Indicator
Rectangle {
anchors.verticalCenter: parent.verticalCenter
width: parent.height * 0.75
height: width
width: parent.narrowIndicator ? height/6 : height
height: parent.height * 0.75
x: (reversed ? (parent.width - _indicatorPosition) : _indicatorPosition) - (width / 2)
radius: width / 2
color: qgcPal.text
@ -790,6 +791,7 @@ SetupPage { @@ -790,6 +791,7 @@ SetupPage {
height: ScreenTools.defaultFontPixelHeight
width: 200
sourceComponent: axisMonitorDisplayComponent
Component.onCompleted: item.narrowIndicator = true
property real defaultTextWidth: ScreenTools.defaultFontPixelWidth
property bool mapped: true

Loading…
Cancel
Save