diff --git a/pages/settings/devicelist/battery/PageBatteryCells.qml b/pages/settings/devicelist/battery/PageBatteryCells.qml index 6cc5e39ab..d61c63d2f 100644 --- a/pages/settings/devicelist/battery/PageBatteryCells.qml +++ b/pages/settings/devicelist/battery/PageBatteryCells.qml @@ -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: [