Commit edea70f3 authored by Frederik Gladhorn's avatar Frederik Gladhorn Committed by Qt by Nokia

Filter accessible objects.

Only include objects in the hierarchy if
either they or their descendants are

Change-Id: I4ed01ccfa2b095a5205f72af97acb6c8dbaa3e74
Reviewed-by: default avatarMorten Johan Sørvig <>
Reviewed-by: default avatarJan-Arve Sæther <>
parent 523be17b
......@@ -135,7 +135,14 @@ QList<QQuickItem *> QAccessibleQuickItem::childItems() const
role() == QAccessible::PageTab ||
role() == QAccessible::ProgressBar)
return QList<QQuickItem *>();
return item()->childItems();
QList<QQuickItem *> items;
Q_FOREACH (QQuickItem *child, item()->childItems()) {
QQuickItemPrivate *itemPrivate = QQuickItemPrivate::get(child);
if (itemPrivate->isAccessible)
return items;
QAccessible::State QAccessibleQuickItem::state() const
Markdown is supported
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