import QtQuick 6.0 import QtQuick.Layouts 6.0 import org.kde.plasma.components 3.0 as PlasmaComponents RowLayout { IconUtils { id: icons } FormatUtils { id: fmt } spacing: 4 PlasmaComponents.Label { text: icons.getDirectionIcon(root.direction) font.pointSize: 12 } PlasmaComponents.Label { text: icons.getBatteryIcon(root.batterySoc) font.pointSize: 12 } PlasmaComponents.Label { text: fmt.formatSoc(root.batterySoc) font.pointSize: 10 font.bold: true } MouseArea { anchors.fill: parent acceptedButtons: Qt.LeftButton onClicked: (mouse) => { root.expanded = !root.expanded } } }