Commit 17da1783 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

applets/batterymonitor: improve accessible properties

This uses the plasmoid name as, and uses tooltip text as
parent 4def2d9f
Pipeline #208664 passed with stage
in 6 minutes and 52 seconds
......@@ -22,10 +22,15 @@ MouseArea {
property QtObject batteries
property bool hasBatteries: false
activeFocusOnTab: true
hoverEnabled: true
property bool wasExpanded Plasmoid.title
Accessible.description: `${Plasmoid.toolTipMainText}; ${Plasmoid.toolTipSubText}`
Accessible.role: Accessible.Button
onPressed: wasExpanded = Plasmoid.expanded
onClicked: Plasmoid.expanded = !wasExpanded
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