Skip to content

Commit

Permalink
Windows QPA: Fix mapping of static text accessibility role
Browse files Browse the repository at this point in the history
QAccessible::StaticText should be mapped to UIA_TextControlTypeId instead
of UIA_EditControlTypeId.

Task-number: QTBUG-69894
Change-Id: If2f8f55d2be492c02a3af5b1813ca12cf774a33a
Reviewed-by: Oliver Wolff <[email protected]>
  • Loading branch information
Andre de la Rocha committed Aug 17, 2018
1 parent 055ff7a commit 981b16d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down
2 changes: 1 addition & 1 deletion tests/auto/other/qaccessibility/tst_qaccessibility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 981b16d

Please sign in to comment.