src/plugins/accessible/widgets/complexwidgets.cpp
branchRCL_3
changeset 14 c0432d11811c
parent 4 3b1da2848fc7
child 33 3e2da88830cd
equal deleted inserted replaced
13:cc75c76972ee 14:c0432d11811c
   722         table = qobject_cast<QTableView*>(m_view);
   722         table = qobject_cast<QTableView*>(m_view);
   723 #endif
   723 #endif
   724         if (start.isValid()) {
   724         if (start.isValid()) {
   725             m_current = start;
   725             m_current = start;
   726         } else if (m_view && m_view->model()) {
   726         } else if (m_view && m_view->model()) {
   727             m_current = view->model()->index(0, 0);
   727             m_current = view->rootIndex().isValid() ? 
       
   728                         view->rootIndex().child(0,0) : view->model()->index(0, 0);
   728         }
   729         }
   729     }
   730     }
   730 
   731 
   731     bool next(int count = 1) {
   732     bool next(int count = 1) {
   732         for (int i = 0; i < count; ++i) {
   733         for (int i = 0; i < count; ++i) {