Commit 72278b71 authored by Jan Arve Sæther's avatar Jan Arve Sæther
Browse files

Do not skip the parent node when flattening the hierarchy.


The weather app had a search field with a clear button as a child.
Because of this bug it didn't report the content of the text edit (but
only the clear button)

Change-Id: I174c6e150e1991fa9aa2a911048590030b5ccc40
Reviewed-by: default avatarFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>
Showing with 3 additions and 6 deletions
...@@ -60,12 +60,9 @@ ...@@ -60,12 +60,9 @@
if (!iface) if (!iface)
return; return;
if (iface->childCount() == 0) { [self createAccessibleElement: iface];
[self createAccessibleElement: iface]; for (int i = 0; i < iface->childCount(); ++i)
} else { [self createAccessibleContainer: iface->child(i)];
for (int i = 0; i < iface->childCount(); ++i)
[self createAccessibleContainer: iface->child(i)];
}
} }
- (void)initAccessibility - (void)initAccessibility
......
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