path: root/src/widgets/accessible
diff options
authorAndre de la Rocha <>2019-12-06 20:09:29 +0100
committerAndre de la Rocha <>2019-12-10 05:45:51 +0100
commite40e82ede1660e6467291002862732a536558f08 (patch)
tree4677898b84eb952a822683b6e06eaaecf2c08134 /src/widgets/accessible
parent73fada6d706a646d6e6b9c6509276e8700094df1 (diff)
Add "checkable" state to accessible menu item
The information about whether a menu item may be checked is necessary to allow the platform code (in particular, Windows UI Automation layer) to make this information available to screen readers. Task-number: QTBUG-80551 Change-Id: Ibfcc4f2da1ebc68e7dc5df2cd46bbfc0a177da12 Reviewed-by: Friedemann Kleint <>
Diffstat (limited to 'src/widgets/accessible')
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/accessible/qaccessiblemenu.cpp b/src/widgets/accessible/qaccessiblemenu.cpp
index 7f87288520..048d4062b8 100644
--- a/src/widgets/accessible/qaccessiblemenu.cpp
+++ b/src/widgets/accessible/qaccessiblemenu.cpp
@@ -299,6 +299,8 @@ QAccessible::State QAccessibleMenuItem::state() const
s.disabled = true;
if (m_action->isChecked())
s.checked = true;
+ if (m_action->isCheckable())
+ s.checkable = true;
return s;