diff --git a/Modules/energy/package/contents/ui/main.qml b/Modules/energy/package/contents/ui/main.qml --- a/Modules/energy/package/contents/ui/main.qml +++ b/Modules/energy/package/contents/ui/main.qml @@ -68,7 +68,8 @@ {label: i18n("Health"), value: "capacity", unit: i18n("%"), precision: 0}, {label: i18n("Vendor"), value: "vendor", source:"Vendor"}, {label: i18n("Model"), value: "model", source:"Product"}, - {label: i18n("Serial Number"), value: "serial"} + {label: i18n("Serial Number"), value: "serial"}, + {label: i18n("Technology"), value: "technology", modifier: "technology"} ] }, { @@ -98,6 +99,18 @@ } } + function modifier_technology(value) { + switch(value) { + case 0: return i18n("Unknown Technology") + case 1: return i18n("Lithium Ion") + case 2: return i18n("Lithium Polymer") + case 3: return i18n("Lithium Iron Phosphate") + case 4: return i18n("LeadAcid") + case 5: return i18n("Lead Acid") + case 6: return i18n("Nickel Metal Hydride") + } + } + implicitWidth: units.gridUnit * 30 implicitHeight: !!currentBattery ? units.gridUnit * 30 : units.gridUnit * 12