summaryrefslogtreecommitdiffstats
path: root/src/plugins/accessible
diff options
context:
space:
mode:
authorAndy Shaw <qt-info@nokia.com>2010-04-11 16:50:56 (GMT)
committerAndy Shaw <qt-info@nokia.com>2010-04-11 16:50:56 (GMT)
commita2c609d977e0e6d6bcf9806a115f6c9119bf24f8 (patch)
tree0d8de1c08870fb392210aa6f0b20017d5151ee25 /src/plugins/accessible
parent698c7a45d156e9f85afb870ffcd5b99d08d8677b (diff)
downloadQt-a2c609d977e0e6d6bcf9806a115f6c9119bf24f8.zip
Qt-a2c609d977e0e6d6bcf9806a115f6c9119bf24f8.tar.gz
Qt-a2c609d977e0e6d6bcf9806a115f6c9119bf24f8.tar.bz2
Fix problem with accessibility clients not getting info from QFileDialog
This fixes a problem with accessibility and QFileDialog, in addition the fix to complexwidgets.cpp will also fix any itemview that uses a root index. Reviewed-by: Jan-Arve
Diffstat (limited to 'src/plugins/accessible')
-rw-r--r--src/plugins/accessible/widgets/complexwidgets.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/accessible/widgets/complexwidgets.cpp b/src/plugins/accessible/widgets/complexwidgets.cpp
index b4ca8f2..8be1560 100644
--- a/src/plugins/accessible/widgets/complexwidgets.cpp
+++ b/src/plugins/accessible/widgets/complexwidgets.cpp
@@ -724,7 +724,8 @@ public:
if (start.isValid()) {
m_current = start;
} else if (m_view && m_view->model()) {
- m_current = view->model()->index(0, 0);
+ m_current = view->rootIndex().isValid() ?
+ view->rootIndex().child(0,0) : view->model()->index(0, 0);
}
}