Commit 9fe7326a authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Battery Monitor] Add tooltip to power profile icons

parent bd397f89
Pipeline #166591 passed with stage
in 7 minutes and 29 seconds
......@@ -130,6 +130,15 @@ RowLayout {
Layout.preferredWidth: PlasmaCore.Units.iconSizes.smallMedium
svg: svg
elementId: "profile-powersave"
HoverHandler {
id: powersaveIconHover
}
PlasmaComponents3.ToolTip {
text: root.profileData.find(profile => profile.profile === "power-saver").label
visible: powersaveIconHover.hovered
}
}
Item {
......@@ -141,6 +150,15 @@ RowLayout {
Layout.preferredWidth: PlasmaCore.Units.iconSizes.smallMedium
svg: svg
elementId: "profile-performance"
HoverHandler {
id: performanceIconHover
}
PlasmaComponents3.ToolTip {
text: root.profileData.find(profile => profile.profile === "performance").label
visible: performanceIconHover.hovered
}
}
}
......
Supports Markdown
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