Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Filter accessible objects.
Only include objects in the hierarchy if
either they or their descendants are
accessible.

Change-Id: I4ed01ccfa2b095a5205f72af97acb6c8dbaa3e74
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
  • Loading branch information
Frederik Gladhorn authored and Qt by Nokia committed Mar 23, 2012
1 parent 523be17 commit edea70f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/plugins/accessible/quick/qaccessiblequickitem.cpp
Expand Up @@ -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)
items.append(child);
}
return items;
}

QAccessible::State QAccessibleQuickItem::state() const
Expand Down

0 comments on commit edea70f

Please sign in to comment.