mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Battery information
This commit is contained in:
parent
cae7ddff81
commit
987c0be0ef
3 changed files with 17 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ Requires:
|
|||
- libqofono-qt5-declarative
|
||||
- voicecall-qt5
|
||||
- voicecall-qt5-plugin-ofono
|
||||
- nemo-qml-plugin-contextkit-qt5
|
||||
|
||||
PkgBR:
|
||||
- extra-cmake-modules
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue