Commit 42fe072a authored by Méven Car's avatar Méven Car
Browse files

[energy KCM] Add battery Technology

Summary: Depends on D23157

Test Plan:
Compiles
Tested with KF5 5.62 installed

Reviewers: broulik, ngraham

Reviewed By: ngraham

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D23392
parent 54e05447
......@@ -68,7 +68,8 @@ KCM.SimpleKCM {
{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 @@ KCM.SimpleKCM {
}
}
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment