Hidden BMS temperature controls. Fixed translations

This commit is contained in:
Yury Shuvakin
2024-01-22 12:26:22 +09:00
parent 649c9ed2a0
commit a83ecbb042
8 changed files with 123 additions and 119 deletions

View File

@@ -24,7 +24,7 @@ Item {
Layout.rightMargin: 10
GridLayout {
columns: 2
columns: 1 // 2
columnSpacing: 70
rowSpacing: 15
anchors.fill: parent
@@ -45,27 +45,27 @@ Item {
}
Layout.fillWidth: true
Layout.maximumWidth: (parent.width - parent.columnSpacing) / 2
// Layout.maximumWidth: (parent.width - parent.columnSpacing) / 2
}
RowLayout {
spacing: 10
Controls.ContentLabel {
text: qsTr("Minimum BMS temperature, °C")
}
// RowLayout {
// spacing: 10
// Controls.ContentLabel {
// text: qsTr("Minimum BMS temperature, °C")
// }
Controls.DotSeparator {
Layout.fillWidth: true
}
// Controls.DotSeparator {
// Layout.fillWidth: true
// }
Controls.SubtitleLabel {
id: minBmsTemperatureLabel
text: "-"
}
// Controls.SubtitleLabel {
// id: minBmsTemperatureLabel
// text: "-"
// }
Layout.fillWidth: true
Layout.maximumWidth: (parent.width - parent.columnSpacing) / 2
}
// Layout.fillWidth: true
// Layout.maximumWidth: (parent.width - parent.columnSpacing) / 2
// }
RowLayout {
spacing: 10
@@ -83,27 +83,27 @@ Item {
}
Layout.fillWidth: true
Layout.maximumWidth: (parent.width - parent.columnSpacing) / 2
// Layout.maximumWidth: (parent.width - parent.columnSpacing) / 2
}
RowLayout {
spacing: 10
Controls.ContentLabel {
text: qsTr("Average BMS temperature, °C")
}
// RowLayout {
// spacing: 10
// Controls.ContentLabel {
// text: qsTr("Average BMS temperature, °C")
// }
Controls.DotSeparator {
Layout.fillWidth: true
}
// Controls.DotSeparator {
// Layout.fillWidth: true
// }
Controls.SubtitleLabel {
id: avgBmsTemperatureLabel
text: "-"
}
// Controls.SubtitleLabel {
// id: avgBmsTemperatureLabel
// text: "-"
// }
Layout.fillWidth: true
Layout.maximumWidth: (parent.width - parent.columnSpacing) / 2
}
// Layout.fillWidth: true
// Layout.maximumWidth: (parent.width - parent.columnSpacing) / 2
// }
RowLayout {
spacing: 10
@@ -121,29 +121,29 @@ Item {
}
Layout.fillWidth: true
Layout.maximumWidth: (parent.width - parent.columnSpacing) / 2
// Layout.maximumWidth: (parent.width - parent.columnSpacing) / 2
}
RowLayout {
spacing: 10
Controls.ContentLabel {
text: qsTr("Maximum BMS temperature, °C")
}
// RowLayout {
// spacing: 10
// Controls.ContentLabel {
// text: qsTr("Maximum BMS temperature, °C")
// }
Controls.DotSeparator {
Layout.fillWidth: true
}
// Controls.DotSeparator {
// Layout.fillWidth: true
// }
Controls.SubtitleLabel {
id: maxBmsTemperatureLabel
text: "-"
}
// Controls.SubtitleLabel {
// id: maxBmsTemperatureLabel
// text: "-"
// }
Layout.fillWidth: true
Layout.maximumWidth: (parent.width - parent.columnSpacing) / 2
}
// Layout.fillWidth: true
// Layout.maximumWidth: (parent.width - parent.columnSpacing) / 2
// }
}
}
@@ -230,9 +230,9 @@ Item {
avgBatteryTemperatureLabel.text = MathHelper.roundDouble(values.tempBattAverage)
minBatteryTemperatureLabel.text = MathHelper.roundDouble(values.tempBattLow)
maxBmsTemperatureLabel.text = MathHelper.roundDouble(values.tempBMSHigh)
avgBmsTemperatureLabel.text = MathHelper.roundDouble(values.tempBMSAverage)
minBmsTemperatureLabel.text = MathHelper.roundDouble(values.tempBMSLow)
// maxBmsTemperatureLabel.text = MathHelper.roundDouble(values.tempBMSHigh)
// avgBmsTemperatureLabel.text = MathHelper.roundDouble(values.tempBMSAverage)
// minBmsTemperatureLabel.text = MathHelper.roundDouble(values.tempBMSLow)
}
onAuxReceived: {