Mac Accessibility: skip invisible children
Change-Id: I6c3da526ecef60447a658b6b5501282729e9c6f5 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
This commit is contained in:
parent
3fb7e5aee9
commit
e02c6dd1d3
@ -145,6 +145,9 @@
|
|||||||
for (int i = 0; i < numKids; ++i) {
|
for (int i = 0; i < numKids; ++i) {
|
||||||
QAccessibleInterface *child = iface->child(i);
|
QAccessibleInterface *child = iface->child(i);
|
||||||
Q_ASSERT(child);
|
Q_ASSERT(child);
|
||||||
|
if (child->state().invalid || child->state().invisible)
|
||||||
|
continue;
|
||||||
|
|
||||||
QAccessible::Id childId = QAccessible::uniqueId(child);
|
QAccessible::Id childId = QAccessible::uniqueId(child);
|
||||||
//qDebug() << " kid: " << childId << child;
|
//qDebug() << " kid: " << childId << child;
|
||||||
QCocoaAccessibleElement *element = [QCocoaAccessibleElement createElementWithId:childId parent:self];
|
QCocoaAccessibleElement *element = [QCocoaAccessibleElement createElementWithId:childId parent:self];
|
||||||
|
@ -82,6 +82,9 @@
|
|||||||
for (int i = 0; i < numKids; ++i) {
|
for (int i = 0; i < numKids; ++i) {
|
||||||
QAccessibleInterface *child = m_window->accessibleRoot()->child(i);
|
QAccessibleInterface *child = m_window->accessibleRoot()->child(i);
|
||||||
Q_ASSERT(child);
|
Q_ASSERT(child);
|
||||||
|
if (child->state().invalid || child->state().invisible)
|
||||||
|
continue;
|
||||||
|
|
||||||
QAccessible::Id childAxid = QAccessible::uniqueId(child);
|
QAccessible::Id childAxid = QAccessible::uniqueId(child);
|
||||||
QCocoaAccessibleElement *element = [QCocoaAccessibleElement createElementWithId:childAxid parent:self];
|
QCocoaAccessibleElement *element = [QCocoaAccessibleElement createElementWithId:childAxid parent:self];
|
||||||
[kids addObject: element];
|
[kids addObject: element];
|
||||||
|
Loading…
Reference in New Issue
Block a user