iOS Accessibility: implement accessibilityElements and check indexing

Fixes: QTBUG-70683
Change-Id: I122c67a5cee22363de5c8e45dc1c83e7760162fb
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Frederik Gladhorn 2019-05-21 14:16:16 +02:00 committed by Tor Arne Vestbø
parent 36c6b7ee4d
commit 8e528d8bd0

View File

@ -101,6 +101,8 @@
- (id)accessibilityElementAtIndex:(NSInteger)index
{
[self initAccessibility];
if (index >= [m_accessibleElements count])
return nil;
return m_accessibleElements[index];
}
@ -110,4 +112,10 @@
return [m_accessibleElements indexOfObject:element];
}
- (NSArray *)accessibilityElements
{
[self initAccessibility];
return m_accessibleElements;
}
@end