Commit 0d07a25a authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

applets/devicenotifier: improve accessible properties

This uses the plasmoid name as Accessible.name, and uses tooltip text as
Accessible.description.


(cherry picked from commit 1a7ae79b)
parent 6f1537e5
Pipeline #208676 canceled with stage
in 1 minute and 58 seconds
......@@ -7,7 +7,7 @@
SPDX-License-Identifier: LGPL-2.0-or-later
*/
import QtQuick 2.0
import QtQuick 2.15
import QtQuick.Layouts 1.1
import org.kde.plasma.plasmoid 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
......@@ -90,7 +90,11 @@ Item {
MouseArea {
id: compactMouse
anchors.fill: parent
activeFocusOnTab: true
hoverEnabled: true
Accessible.name: Plasmoid.title
Accessible.description: `${Plasmoid.toolTipMainText}: ${Plasmoid.toolTipSubText}`
Accessible.role: Accessible.Button
onClicked: Plasmoid.expanded = !Plasmoid.expanded
}
}
......
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