@ -23,6 +23,8 @@ import QGroundControl.FactControls 1.0
ColumnLayout {
ColumnLayout {
width: availableWidth
width: availableWidth
height: ( globals . activeVehicle . supportsJSButton ? buttonCol.height : flowColumn . height ) + ( ScreenTools . defaultFontPixelHeight * 2 )
height: ( globals . activeVehicle . supportsJSButton ? buttonCol.height : flowColumn . height ) + ( ScreenTools . defaultFontPixelHeight * 2 )
spacing: ScreenTools . defaultFontPixelHeight
Connections {
Connections {
target: _activeJoystick
target: _activeJoystick
onRawButtonPressedChanged: {
onRawButtonPressedChanged: {
@ -34,16 +36,20 @@ ColumnLayout {
}
}
}
}
}
}
ColumnLayout {
ColumnLayout {
id: flowColumn
id: flowColumn
y: ScreenTools . defaultFontPixelHeight / 2
width: parent . width
width: parent . width
spacing: ScreenTools . defaultFontPixelHeight / 2
anchors.centerIn: parent
spacing: ScreenTools . defaultFontPixelHeight
/ / N o t e f o r r e m i n d i n g t h e u s e o f m u l t i p l e b u t t o n s f o r t h e s a m e a c t i o n
QGCLabel {
QGCLabel {
Layout.preferredWidth: parent . width
Layout.preferredWidth: parent . width
wrapMode: Text . WordWrap
wrapMode: Text . WordWrap
text: qsTr ( "Assigning the same action to multiple buttons requires the press of all those buttons for the action to be taken. This is useful to prevent accidental button presses for critical actions like Arm or Emergency Stop ." )
text: qsTr ( " Multiple buttons that have the same action must be pressed simultaneously to invoke the action ." )
}
}
Flow {
Flow {
id: buttonFlow
id: buttonFlow
Layout.preferredWidth: parent . width
Layout.preferredWidth: parent . width