diff --git a/pages/settings/devicelist/battery/PageBatteryCells.qml b/pages/settings/devicelist/battery/PageBatteryCells.qml index 261dd3adb..ed5563c1f 100644 --- a/pages/settings/devicelist/battery/PageBatteryCells.qml +++ b/pages/settings/devicelist/battery/PageBatteryCells.qml @@ -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 @@ -59,6 +141,7 @@ Page { uid: root.bindPrefix + "/Voltages/Sum" } } +*/ /* ListQuantityGroup { @@ -182,7 +265,7 @@ Page { ] } */ - +/* ListQuantityGroup { text: "Cells (17/18/19/20)" textModel: [ @@ -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 @@ -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 @@ -278,7 +361,7 @@ Page { } } - +*/ } }