a11y: Implement accessibilityHelp on macOS
Note for manual testing: You can read it manually with vo+shift+h Fixes: QTBUG-84864 Pick-to: 5.15 Change-Id: I5686e40642396db2fde685cf07b758acd29c6ee0 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
This commit is contained in:
parent
6bbfae9457
commit
59836c9680
@ -640,6 +640,16 @@ static void convertLineOffset(QAccessibleTextInterface *text, int *line, int *of
|
||||
return NSAccessibilityUnignoredAncestor(self);
|
||||
}
|
||||
|
||||
- (NSString *) accessibilityHelp {
|
||||
QAccessibleInterface *iface = QAccessible::accessibleInterface(axid);
|
||||
if (iface && iface->isValid()) {
|
||||
const QString helpText = iface->text(QAccessible::Help);
|
||||
if (!helpText.isEmpty())
|
||||
return helpText.toNSString();
|
||||
}
|
||||
return nil;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
#endif // QT_NO_ACCESSIBILITY
|
||||
|
Loading…
x
Reference in New Issue
Block a user