a11y uia: Map 3 more roles to UIA control type IDs
For QAccessible::Paragraph and QAccessible::Heading, use UIA_TextControlTypeId as specified in the Core Accessibility API Mappings specification [1] [2]. For QAccessible::WebDocument use UIA_DocumentControlTypeId. [1] https://w3c.github.io/core-aam/#role-map-paragraph [2] https://w3c.github.io/core-aam/#role-map-heading Change-Id: Idae1e2da28b495d5d639df63c3de1260f2177142 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
This commit is contained in:
parent
56476947cf
commit
bb6ed27b50
@ -176,6 +176,9 @@ long roleToControlTypeId(QAccessible::Role role)
|
||||
{QAccessible::PageTabList, UIA_TabControlTypeId},
|
||||
{QAccessible::Clock, UIA_CustomControlTypeId},
|
||||
{QAccessible::Splitter, UIA_CustomControlTypeId},
|
||||
{QAccessible::Paragraph, UIA_TextControlTypeId},
|
||||
{QAccessible::WebDocument, UIA_DocumentControlTypeId},
|
||||
{QAccessible::Heading, UIA_TextControlTypeId},
|
||||
};
|
||||
|
||||
return mapping.value(role, UIA_CustomControlTypeId);
|
||||
|
Loading…
Reference in New Issue
Block a user