Commit 8e528d8b authored by Frederik Gladhorn's avatar Frederik Gladhorn Committed by Tor Arne Vestbø
Browse files

iOS Accessibility: implement accessibilityElements and check indexing


Fixes: QTBUG-70683
Change-Id: I122c67a5cee22363de5c8e45dc1c83e7760162fb
Reviewed-by: default avatarTor Arne Vestbø <tor.arne.vestbo@qt.io>
 
Showing with 8 additions and 0 deletions
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment