diff --git a/packaging/plasma-phone-components.spec b/packaging/plasma-phone-components.spec index 547dfe1e..d4aa891e 100644 --- a/packaging/plasma-phone-components.spec +++ b/packaging/plasma-phone-components.spec @@ -27,6 +27,7 @@ Requires: libqofono-qt5 Requires: libqofono-qt5-declarative Requires: voicecall-qt5 Requires: voicecall-qt5-plugin-ofono +Requires: nemo-qml-plugin-contextkit-qt5 BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5Xml) diff --git a/packaging/plasma-phone-components.yaml b/packaging/plasma-phone-components.yaml index aade010b..8147e85e 100644 --- a/packaging/plasma-phone-components.yaml +++ b/packaging/plasma-phone-components.yaml @@ -23,6 +23,7 @@ Requires: - libqofono-qt5-declarative - voicecall-qt5 - voicecall-qt5-plugin-ofono + - nemo-qml-plugin-contextkit-qt5 PkgBR: - extra-cmake-modules diff --git a/shell/contents/views/Desktop.qml b/shell/contents/views/Desktop.qml index eb20d79b..65608c0d 100644 --- a/shell/contents/views/Desktop.qml +++ b/shell/contents/views/Desktop.qml @@ -26,6 +26,7 @@ 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 org.freedesktop.contextkit 1.0 import MeeGo.QOfono 0.2 import "../components" @@ -359,6 +360,20 @@ Item { } width: units.iconSizes.small height: width + hasBattery: batteryOn.value + batteryType: "Phone" + percent: batteryChargePercentage.value + + ContextProperty { + id: batteryOn + key: "Battery.OnBattery" + } + + ContextProperty { + id: batteryChargePercentage + key: "Battery.ChargePercentage" + value: "100" + } } }