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 01611fc commit f73d4d5
Showing 1 changed file with 88 additions and 5 deletions.
93 changes: 88 additions & 5 deletions pages/settings/devicelist/battery/PageBatteryCells.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,95 @@ Page {



ListItem {
text: "Custom item"

RowLayout {
anchors.fill: parent

Column {
Layout.fillWidth: true
Text { text: batteryCellVoltageSum.value }
Text { text: "Sum" }
}

Rectangle {
id: separator

anchors {
right: parent.right
rightMargin: -root.content.spacing / 2
}
width: Theme.geometry_listItem_separator_width
height: parent.implicitHeight
color: Theme.color_listItem_separator
visible: model.index !== repeater.count - 1
}

Column {
Layout.fillWidth: true
Text { text: batteryCellVoltageDiff.value }
Text { text: "Diff" }
}

Rectangle {
id: separator

anchors {
right: parent.right
rightMargin: -root.content.spacing / 2
}
width: Theme.geometry_listItem_separator_width
height: parent.implicitHeight
color: Theme.color_listItem_separator
visible: model.index !== repeater.count - 1
}

Column {
Layout.fillWidth: true
Text { text: batteryMaxCellVoltage.value }
Text { text: "Max" }
}
Rectangle { // Separator
width: 1
color: "gray"
Layout.fillHeight: true
}

Column {
Layout.fillWidth: true
Text { text: batteryMinCellVoltage.value }
Text { text: "Min" }
}
}

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"
}

}


/*
ListQuantityGroup {
text: "Cells (Min/Max/Diff/Sum)"
textModel: [
{
value: batteryMinCellVoltage.value
unit: VenusOS.Units_Volt
secondaryText: "Min"
},
{
value: batteryMaxCellVoltage.value
Expand Down Expand Up @@ -59,6 +141,7 @@ Page {
uid: root.bindPrefix + "/Voltages/Sum"
}
}
*/

/*
ListQuantityGroup {
Expand Down Expand Up @@ -182,7 +265,7 @@ Page {
]
}
*/

/*
ListQuantityGroup {
text: "Cells (17/18/19/20)"
textModel: [
Expand All @@ -207,7 +290,7 @@ Page {
secondaryText: "Cell 20"
},
]
visiible: batteryVoltagesCell17.isValid || batteryVoltagesCell18.isValid || batteryVoltagesCell19.isValid || batteryVoltagesCell20.isValid
visible: batteryVoltagesCell17.isValid || batteryVoltagesCell18.isValid || batteryVoltagesCell19.isValid || batteryVoltagesCell20.isValid
VeQuickItem {
id: batteryVoltagesCell17
Expand Down Expand Up @@ -255,7 +338,7 @@ Page {
secondaryText: "Cell 24"
},
]
visiible: batteryVoltagesCell21.isValid || batteryVoltagesCell22.isValid || batteryVoltagesCell23.isValid || batteryVoltagesCell24.isValid
visible: batteryVoltagesCell21.isValid || batteryVoltagesCell22.isValid || batteryVoltagesCell23.isValid || batteryVoltagesCell24.isValid
VeQuickItem {
id: batteryVoltagesCell21
Expand All @@ -278,7 +361,7 @@ Page {
}
}

*/

}
}
Expand Down

0 comments on commit f73d4d5

Please sign in to comment.