Update deprecated NSAccessibility method
accessibilityEnabledAttribute is replaced with isAccessibilityEnabled. https://developer.apple.com/documentation/appkit/nsaccessibility/1535024-accessibilityenabled?language=objc Fixes: QTBUG-95293 Change-Id: Ie88fa61ad97d6c77dcec15e63a73f64c90011497 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit fe1085e9aebd3b669a18bd889fc007b1fc1c1e5d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
0d9b37493f
commit
c0acb7b957
@ -247,7 +247,7 @@ static void convertLineOffset(QAccessibleTextInterface *text, int *line, int *of
|
||||
return iface->text(QAccessible::Name).toNSString();
|
||||
}
|
||||
|
||||
- (BOOL) accessibilityEnabledAttribute {
|
||||
- (BOOL) isAccessibilityEnabled {
|
||||
QAccessibleInterface *iface = QAccessible::accessibleInterface(axid);
|
||||
if (!iface || !iface->isValid())
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user