Commit 03e280d1 authored by Nate Graham's avatar Nate Graham
Browse files

[applets/batterymonitor] Show button in popup to open Energy KCM

Right now this functionality is only offered through the context menu,
which of course is not available on touch. This commit adds a simple
toolbutton in the applet's toolbar to show the Energy KCM.
parent 933a343c
......@@ -40,6 +40,16 @@ ColumnLayout {
checked: true
PlasmaComponents3.ToolButton { "documentinfo"
onClicked: batterymonitor.action_energyinformationkcm()
visible: batterymonitor.kcmEnergyInformationAuthorized
PlasmaComponents3.ToolTip {
text: i18n("Show detailed energy information")
PlasmaComponents3.ToolButton { "configure"
onClicked: batterymonitor.action_powerdevilkcm()
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