diff --git a/qml/pages/MainPage.qml b/qml/pages/MainPage.qml index 3e3bf49..b81bc24 100644 --- a/qml/pages/MainPage.qml +++ b/qml/pages/MainPage.qml @@ -25,6 +25,8 @@ Page { "idle": qsTr("idle", "Charger plugged in, not using nor charging battery"), "discharging": qsTr("discharging", "Charger not plugged in, battery discharging"), "charging": qsTr("charging", "Charger plugged in and battery charging"), + "full": qsTr("full", "Battery fully charged"), + "empty": qsTr("empty", "Battery fully depleted"), "unknown": qsTr("unknown", "Battery not detected, or faulty, or something") } diff --git a/src/battery.cpp b/src/battery.cpp index 888f072..1cf9973 100644 --- a/src/battery.cpp +++ b/src/battery.cpp @@ -21,7 +21,7 @@ Battery::Battery(QObject* parent) : QObject(parent) { // Number: meaning percentage, e.g. 42 chargeFile = new QFile("/sys/class/power_supply/battery/capacity", this); - // String: charging, discharging, (empty), unknown (others?) + // String: charging, discharging, full, empty, unknown (others?) stateFile = new QFile("/sys/class/power_supply/battery/status", this); // Number: 0 or 1 chargerConnectedFile = new QFile("/sys/class/power_supply/usb/present");