mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-27 14:33:08 +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: libqofono-qt5-declarative
|
||||||
Requires: voicecall-qt5
|
Requires: voicecall-qt5
|
||||||
Requires: voicecall-qt5-plugin-ofono
|
Requires: voicecall-qt5-plugin-ofono
|
||||||
|
Requires: nemo-qml-plugin-contextkit-qt5
|
||||||
BuildRequires: pkgconfig(Qt5Core)
|
BuildRequires: pkgconfig(Qt5Core)
|
||||||
BuildRequires: pkgconfig(Qt5DBus)
|
BuildRequires: pkgconfig(Qt5DBus)
|
||||||
BuildRequires: pkgconfig(Qt5Xml)
|
BuildRequires: pkgconfig(Qt5Xml)
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ Requires:
|
||||||
- libqofono-qt5-declarative
|
- libqofono-qt5-declarative
|
||||||
- voicecall-qt5
|
- voicecall-qt5
|
||||||
- voicecall-qt5-plugin-ofono
|
- voicecall-qt5-plugin-ofono
|
||||||
|
- nemo-qml-plugin-contextkit-qt5
|
||||||
|
|
||||||
PkgBR:
|
PkgBR:
|
||||||
- extra-cmake-modules
|
- 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.components 2.0 as PlasmaComponents
|
||||||
import org.kde.plasma.workspace.components 2.0 as PlasmaWorkspace
|
import org.kde.plasma.workspace.components 2.0 as PlasmaWorkspace
|
||||||
import org.nemomobile.voicecall 1.0
|
import org.nemomobile.voicecall 1.0
|
||||||
|
import org.freedesktop.contextkit 1.0
|
||||||
import MeeGo.QOfono 0.2
|
import MeeGo.QOfono 0.2
|
||||||
import "../components"
|
import "../components"
|
||||||
|
|
||||||
|
|
@ -359,6 +360,20 @@ Item {
|
||||||
}
|
}
|
||||||
width: units.iconSizes.small
|
width: units.iconSizes.small
|
||||||
height: width
|
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