Commit 06047189 authored by Morten Johan Sørvig's avatar Morten Johan Sørvig Committed by The Qt Project
Browse files

Make buttons respond to accessible press.


QML accessibility looks for and calls accessiblePressAction
when a Press action is received.

Change-Id: I53779ba0f6833fde3d593ee5ac6a4106fd9d3521
Reviewed-by: default avatarJ-P Nurmi <jpnurmi@digia.com>
parent 70acaf3d
Branches
Tags
No related merge requests found
Showing with 5 additions and 0 deletions
...@@ -115,6 +115,11 @@ Control { ...@@ -115,6 +115,11 @@ Control {
Accessible.role: Accessible.Button Accessible.role: Accessible.Button
Accessible.description: tooltip Accessible.description: tooltip
/*! \internal */
function accessiblePressAction() {
__action.trigger()
}
Action { id: ownAction } Action { id: ownAction }
Connections { Connections {
......
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