macOS: Remove check for NSAccessibilityCellRole when synthesizing role
We check for `!synthesizedRole` before entering this code, which means the role can not be NSAccessibilityCellRole either, as the synthesized role is initialized from the role. Change-Id: I8ea4a09f770901f34f41f52c8d736d70152d3312 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
7318bfb47a
commit
2e6acc23cd
@ -125,10 +125,6 @@ static void convertLineOffset(QAccessibleTextInterface *text, int *line, int *of
|
|||||||
if (iface->tableInterface()) {
|
if (iface->tableInterface()) {
|
||||||
[self updateTableModel];
|
[self updateTableModel];
|
||||||
} else if (const auto *cell = iface->tableCellInterface()) {
|
} else if (const auto *cell = iface->tableCellInterface()) {
|
||||||
// Called with role when populating a row with placeholder cells. The caller
|
|
||||||
// inserts us into the correct array, so we don't have to look for it.
|
|
||||||
if (role == NSAccessibilityCellRole)
|
|
||||||
return self;
|
|
||||||
// If we create an element for a table cell, initialize it with row/column
|
// If we create an element for a table cell, initialize it with row/column
|
||||||
// and insert it into the corresponding row's columns array.
|
// and insert it into the corresponding row's columns array.
|
||||||
m_rowIndex = cell->rowIndex();
|
m_rowIndex = cell->rowIndex();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user