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
accessible.

Change-Id: I4ed01ccfa2b095a5205f72af97acb6c8dbaa3e74
Reviewed-by: 's avatarMorten Johan Sørvig <morten.sorvig@nokia.com>
Reviewed-by: 's avatarJan-Arve Sæther <jan-arve.saether@nokia.com>
parent 523be17b
...@@ -135,7 +135,14 @@ QList<QQuickItem *> QAccessibleQuickItem::childItems() const ...@@ -135,7 +135,14 @@ QList<QQuickItem *> QAccessibleQuickItem::childItems() const
role() == QAccessible::PageTab || role() == QAccessible::PageTab ||
role() == QAccessible::ProgressBar) role() == QAccessible::ProgressBar)
return QList<QQuickItem *>(); return QList<QQuickItem *>();
return item()->childItems();
QList<QQuickItem *> items;
Q_FOREACH (QQuickItem *child, item()->childItems()) {
QQuickItemPrivate *itemPrivate = QQuickItemPrivate::get(child);
if (itemPrivate->isAccessible)
items.append(child);
}
return items;
} }
QAccessible::State QAccessibleQuickItem::state() const 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