a11y atspi: Move comment to better place
Move the comment about setting the ATSPI_STATE_MANAGES_DESCENDANTS state to the place where the state is actually set. Change-Id: Ia6956d36db86e935b4fab03b1892cf4e8a709c0f Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>bb10
parent
0462c1254e
commit
dad2797aee
|
|
@ -1135,9 +1135,6 @@ void AtSpiAdaptor::notify(QAccessibleEvent *event)
|
|||
}
|
||||
// For now we ignore these events
|
||||
case QAccessible::TableModelChanged:
|
||||
// For tables, setting manages_descendants should
|
||||
// indicate to the client that it cannot cache these
|
||||
// interfaces.
|
||||
case QAccessible::ParentChanged:
|
||||
case QAccessible::DialogStart:
|
||||
case QAccessible::DialogEnd:
|
||||
|
|
@ -1440,6 +1437,9 @@ bool AtSpiAdaptor::accessibleInterface(QAccessibleInterface *interface, const QS
|
|||
} else if (function == "GetState"_L1) {
|
||||
quint64 spiState = spiStatesFromQState(interface->state());
|
||||
if (interface->tableInterface()) {
|
||||
// For tables, setting manages_descendants should
|
||||
// indicate to the client that it cannot cache these
|
||||
// interfaces.
|
||||
setSpiStateBit(&spiState, ATSPI_STATE_MANAGES_DESCENDANTS);
|
||||
}
|
||||
QAccessible::Role role = interface->role();
|
||||
|
|
|
|||
Loading…
Reference in New Issue