Windows QPA: Fix mapping of static text accessibility role
QAccessible::StaticText should be mapped to UIA_TextControlTypeId instead of UIA_EditControlTypeId. Task-number: QTBUG-69894 Change-Id: If2f8f55d2be492c02a3af5b1813ca12cf774a33a Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
This commit is contained in:
parent
055ff7a8a4
commit
981b16d9ba
@ -180,7 +180,7 @@ long roleToControlTypeId(QAccessible::Role role)
|
||||
{QAccessible::PropertyPage, UIA_CustomControlTypeId},
|
||||
{QAccessible::Indicator, UIA_CustomControlTypeId},
|
||||
{QAccessible::Graphic, UIA_ImageControlTypeId},
|
||||
{QAccessible::StaticText, UIA_EditControlTypeId},
|
||||
{QAccessible::StaticText, UIA_TextControlTypeId},
|
||||
{QAccessible::EditableText, UIA_EditControlTypeId},
|
||||
{QAccessible::Button, UIA_ButtonControlTypeId},
|
||||
{QAccessible::CheckBox, UIA_CheckBoxControlTypeId},
|
||||
|
@ -3878,7 +3878,7 @@ void tst_QAccessibility::bridgeTest()
|
||||
// Label
|
||||
hr = nodeList.at(4)->get_CurrentControlType(&controlTypeId);
|
||||
QVERIFY(SUCCEEDED(hr));
|
||||
QCOMPARE(controlTypeId, UIA_EditControlTypeId);
|
||||
QCOMPARE(controlTypeId, UIA_TextControlTypeId);
|
||||
|
||||
for (auto nd : nodeList) {
|
||||
nd->Release();
|
||||
|
Loading…
x
Reference in New Issue
Block a user