From 1976dcfe6b656855fbac6c638409aed95aa36b59 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Wed, 4 Jan 2012 13:01:23 +0100 Subject: [PATCH] Hide more children of accessible objects. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: Ie8874b3b5a354f7f0586efb601b217e4d296af5c Reviewed-by: Jan-Arve Sæther --- src/plugins/accessible/quick/qaccessiblequickitem.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/plugins/accessible/quick/qaccessiblequickitem.cpp b/src/plugins/accessible/quick/qaccessiblequickitem.cpp index 49b51f2..206168e 100644 --- a/src/plugins/accessible/quick/qaccessiblequickitem.cpp +++ b/src/plugins/accessible/quick/qaccessiblequickitem.cpp @@ -163,7 +163,14 @@ int QAccessibleQuickItem::indexOfChild(const QAccessibleInterface *iface) const QList QAccessibleQuickItem::childItems() const { - if (role() == QAccessible::Button) + if ( role() == QAccessible::Button || + role() == QAccessible::CheckBox || + role() == QAccessible::RadioButton || + role() == QAccessible::SpinBox || + role() == QAccessible::EditableText || + role() == QAccessible::Slider || + role() == QAccessible::PageTab || + role() == QAccessible::ProgressBar) return QList(); return m_item->childItems(); } -- 2.7.4