Don't use NSAccessibilityUnignoredChildren.
The function is massively ineffective on deep hierarchies and not strictly needed. (It's supposed to filter out "Ignored" children - VoiceOver will do that anyway based on accessibilityIsIgnored()) Change-Id: I9a74b5f5e9b7880e0d46d5330f7192472eac7a36 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>bb10
parent
1ac5d97800
commit
9a6366cead
|
|
@ -139,7 +139,7 @@ static QAccessibleInterface *acast(void *ptr)
|
|||
[kids addObject:[QCocoaAccessibleElement elementWithInterface:(void*)childInterface parent:self]];
|
||||
}
|
||||
|
||||
return NSAccessibilityUnignoredChildren(kids);
|
||||
return kids;
|
||||
} else if ([attribute isEqualToString:NSAccessibilityFocusedAttribute]) {
|
||||
// Just check if the app thinks we're focused.
|
||||
id focusedElement = [NSApp accessibilityAttributeValue:NSAccessibilityFocusedUIElementAttribute];
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@
|
|||
[kids addObject:[QCocoaAccessibleElement elementWithInterface: m_accessibleRoot->child(i) parent:self ]];
|
||||
}
|
||||
|
||||
return NSAccessibilityUnignoredChildren(kids);
|
||||
return kids;
|
||||
} else {
|
||||
return [super accessibilityAttributeValue:attribute];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue