From 5ae2e2e56d66314b2e8de8639cf430b849e8c68a Mon Sep 17 00:00:00 2001 From: Pier Luigi Fiorini Date: Sun, 9 Nov 2014 13:50:03 +0100 Subject: [PATCH] Add battery icon --- shell/contents/views/Desktop.qml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/shell/contents/views/Desktop.qml b/shell/contents/views/Desktop.qml index 60f1ee44..eb20d79b 100644 --- a/shell/contents/views/Desktop.qml +++ b/shell/contents/views/Desktop.qml @@ -24,6 +24,7 @@ import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.shell 2.0 as Shell import org.kde.satellite.components 0.1 as SatelliteComponents import org.kde.plasma.components 2.0 as PlasmaComponents +import org.kde.plasma.workspace.components 2.0 as PlasmaWorkspace import org.nemomobile.voicecall 1.0 import MeeGo.QOfono 0.2 import "../components" @@ -349,6 +350,16 @@ Item { } onReleased: slidingPanel.updateState(); } + + PlasmaWorkspace.BatteryIcon { + id: batteryIcon + anchors { + right: parent.right + verticalCenter: parent.verticalCenter + } + width: units.iconSizes.small + height: width + } } SlidingPanel {