Commit 4f85d753 authored by Don Gagne's avatar Don Gagne

Small screen fixes

parent 07712487
...@@ -105,7 +105,7 @@ QGCView { ...@@ -105,7 +105,7 @@ QGCView {
Column { Column {
id: innerColumn id: innerColumn
width: panel.width width: parent.width
spacing: ScreenTools.defaultFontPixelHeight * 0.5 spacing: ScreenTools.defaultFontPixelHeight * 0.5
QGCLabel { QGCLabel {
...@@ -185,7 +185,7 @@ QGCView { ...@@ -185,7 +185,7 @@ QGCView {
QGCColoredImage { QGCColoredImage {
id: batteryImage id: batteryImage
anchors.verticalCenter: voltageCol.verticalCenter anchors.verticalCenter: voltageCol.verticalCenter
x: voltageCol.firstColumnWidth + textEditWidth + (ScreenTools.defaultFontPixelWidth * 3) x: voltageCol.firstColumnWidth + textEditWidth + (ScreenTools.defaultFontPixelWidth * 2)
width: height * 0.75 width: height * 0.75
height: voltageCol.height height: voltageCol.height
sourceSize.height: height sourceSize.height: height
...@@ -197,25 +197,37 @@ QGCView { ...@@ -197,25 +197,37 @@ QGCView {
} }
Column { Column {
anchors.leftMargin: ScreenTools.defaultFontPixelWidth * 2 id: batteryMinMaxColumn
anchors.leftMargin: ScreenTools.defaultFontPixelWidth
anchors.left: batteryImage.right anchors.left: batteryImage.right
anchors.verticalCenter: voltageCol.verticalCenter anchors.verticalCenter: voltageCol.verticalCenter
spacing: ScreenTools.defaultFontPixelHeight spacing: ScreenTools.defaultFontPixelHeight
property real firstColumnWidth: Math.max(batteryMaxLabel.width, batteryMinLabel.contentWidth) + ScreenTools.defaultFontPixelWidth
Row { Row {
spacing: ScreenTools.defaultFontPixelWidth
QGCLabel { QGCLabel {
width: ScreenTools.defaultFontPixelWidth * 12 id: batteryMaxLabel
text: qsTr("Battery Max:") text: qsTr("Battery Max:")
} }
QGCLabel { QGCLabel {
x: batteryMinMaxColumn.firstColumnWidth
text: (battNumCells.value * battHighVolt.value).toFixed(1) + ' V' text: (battNumCells.value * battHighVolt.value).toFixed(1) + ' V'
} }
} }
Row { Row {
spacing: ScreenTools.defaultFontPixelWidth
QGCLabel { QGCLabel {
width: ScreenTools.defaultFontPixelWidth * 12 id: batteryMinLabel
text: qsTr("Battery Min:") text: qsTr("Battery Min:")
} }
QGCLabel { QGCLabel {
x: batteryMinMaxColumn.firstColumnWidth
text: (battNumCells.value * battLowVolt.value).toFixed(1) + ' V' text: (battNumCells.value * battLowVolt.value).toFixed(1) + ' V'
} }
} }
...@@ -236,11 +248,14 @@ QGCView { ...@@ -236,11 +248,14 @@ QGCView {
id : escCalColumn id : escCalColumn
anchors.margins: ScreenTools.defaultFontPixelHeight / 2 anchors.margins: ScreenTools.defaultFontPixelHeight / 2
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top anchors.top: parent.top
spacing: ScreenTools.defaultFontPixelWidth spacing: ScreenTools.defaultFontPixelWidth
QGCLabel { QGCLabel {
width: parent.width
color: palette.warningText color: palette.warningText
wrapMode: Text.WordWrap
text: qsTr("WARNING: Propellers must be removed from vehicle prior to performing ESC calibration.") text: qsTr("WARNING: Propellers must be removed from vehicle prior to performing ESC calibration.")
} }
...@@ -309,19 +324,26 @@ QGCView { ...@@ -309,19 +324,26 @@ QGCView {
id: uavCanEscCalColumn id: uavCanEscCalColumn
anchors.margins: ScreenTools.defaultFontPixelHeight / 2 anchors.margins: ScreenTools.defaultFontPixelHeight / 2
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top anchors.top: parent.top
spacing: ScreenTools.defaultFontPixelWidth spacing: ScreenTools.defaultFontPixelWidth
QGCLabel { QGCLabel {
width: parent.width
wrapMode: Text.WordWrap
color: palette.warningText color: palette.warningText
text: qsTr("WARNING: Propellers must be removed from vehicle prior to performing UAVCAN ESC configuration.") text: qsTr("WARNING: Propellers must be removed from vehicle prior to performing UAVCAN ESC configuration.")
} }
QGCLabel { QGCLabel {
width: parent.width
wrapMode: Text.WordWrap
text: qsTr("ESC parameters will only be accessible in the editor after assignment.") text: qsTr("ESC parameters will only be accessible in the editor after assignment.")
} }
QGCLabel { QGCLabel {
width: parent.width
wrapMode: Text.WordWrap
text: qsTr("Start the process, then turn each motor into its turn direction, in the order of their motor indices.") text: qsTr("Start the process, then turn each motor into its turn direction, in the order of their motor indices.")
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment