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 d5c31ac commit b1ce5f3
Showing 1 changed file with 153 additions and 0 deletions.
153 changes: 153 additions & 0 deletions pages/settings/devicelist/battery/PageBatteryCells.qml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,159 @@ Page {
GradientListView {
model: ObjectModel {



ListItem {
text: "Custom item"

content.children: [

Column {
Text {
text: batteryCellVoltageSum.value
color: Theme.color_font_primary
font.pixelSize: font_size_body2
}
Text {
text: "Sum"
color: Theme.color_font_secondary
font.pixelSize: font_size_body1
}
},
Column {
Text {
text: batteryCellVoltageDiff.value
color: Theme.color_font_primary
font.pixelSize: font_size_body2
}
Text {
text: "Diff"
color: Theme.color_font_secondary
font.pixelSize: font_size_body1
}
},
Column {
Text {
text: batteryMaxCellVoltage.value
color: Theme.color_font_primary
font.pixelSize: font_size_body2
}
Text {
text: "Max"
color: Theme.color_font_secondary
font.pixelSize: font_size_body1
}
}
Column {
Text {
text: batteryMinCellVoltage.value
color: Theme.color_font_primary
font.pixelSize: font_size_body2
}
Text {
text: "Min"
color: Theme.color_font_secondary
font.pixelSize: font_size_body1
}
}
]

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

}

ListItem {

content.children: [

Column {
width: parent.width / 4
Text {
text: batteryCellVoltageSum.value
color: Theme.color_font_primary
font.pixelSize: font_size_body2
}
Text {
text: "Sum"
color: Theme.color_font_secondary
font.pixelSize: font_size_body1
}
},
Column {
width: parent.width / 4
Text {
text: batteryCellVoltageDiff.value
color: Theme.color_font_primary
font.pixelSize: font_size_body2
}
Text {
text: "Diff"
color: Theme.color_font_secondary
font.pixelSize: font_size_body1
}
},
Column {
width: parent.width / 4
Text {
text: batteryMaxCellVoltage.value
color: Theme.color_font_primary
font.pixelSize: font_size_body2
}
Text {
text: "Max"
color: Theme.color_font_secondary
font.pixelSize: font_size_body1
}
}
Column {
width: parent.width / 4
Text {
text: batteryMinCellVoltage.value
color: Theme.color_font_primary
font.pixelSize: font_size_body2
}
Text {
text: "Min"
color: Theme.color_font_secondary
font.pixelSize: font_size_body1
}
}
]

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

}

ListTextGroup {
text: "Cells (Min/Max/Diff/Sum)"
textModel: [
Expand Down

0 comments on commit b1ce5f3

Please sign in to comment.