Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-manuel committed Feb 19, 2024
1 parent b1ce5f3 commit d0e57a0
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pages/settings/devicelist/battery/PageBattery.qml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ Page {
ListTextItem {
//% "Time-to-go"
text: qsTrId("battery_time_to_go")
visible: defaultVisible && item.seen
visible: defaultVisible
secondaryText: Utils.secondsToString(root.battery.timeToGo)
}

Expand Down
39 changes: 33 additions & 6 deletions pages/settings/devicelist/battery/PageBatteryCells.qml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Page {
color: Theme.color_font_secondary
font.pixelSize: font_size_body1
}
}
},
Column {
Text {
text: batteryMinCellVoltage.value
Expand Down Expand Up @@ -133,7 +133,7 @@ Page {
color: Theme.color_font_secondary
font.pixelSize: font_size_body1
}
}
},
Column {
width: parent.width / 4
Text {
Expand Down Expand Up @@ -171,10 +171,37 @@ Page {
ListTextGroup {
text: "Cells (Min/Max/Diff/Sum)"
textModel: [
"Sum: " + batteryCellVoltageSum.value + VenusOS.Units_Volt,
"Diff: " + batteryCellVoltageDiff.value + VenusOS.Units_Volt,
"Min: " + batteryMinCellVoltage.value + VenusOS.Units_Volt,
"Max: " + batteryMaxCellVoltage.value + VenusOS.Units_Volt,
"Sum: " + batteryCellVoltageSum.value + VenusOS.Units_Volt,
"Diff: " + batteryCellVoltageDiff.value + VenusOS.Units_Volt,
"Min: " + batteryMinCellVoltage.value + VenusOS.Units_Volt,
"Max: " + batteryMaxCellVoltage.value + VenusOS.Units_Volt,
]

VeQuickItem {
id: batteryMinCellVoltage
uid: root.bindPrefix + "/System/MinCellVoltage"
}
VeQuickItem {
id: batteryMaxCellVoltage
uid: root.bindPrefix + "/System/MaxCellVoltage"
}
VeQuickItem {
id: batteryCellVoltageDiff
uid: root.bindPrefix + "/Voltages/Diff"
}
VeQuickItem {
id: batteryCellVoltageSum
uid: root.bindPrefix + "/Voltages/Sum"
}
}

ListTextGroup {
text: "Cells (Min/Max/Diff/Sum)"
textModel: [
"Sum: ", batteryCellVoltageSum.value + VenusOS.Units_Volt,
"Diff: ", batteryCellVoltageDiff.value + VenusOS.Units_Volt,
"Min: ", batteryMinCellVoltage.value + VenusOS.Units_Volt,
"Max: ", batteryMaxCellVoltage.value + VenusOS.Units_Volt,
]

VeQuickItem {
Expand Down

0 comments on commit d0e57a0

Please sign in to comment.