- case Child: {
- return -1;
- }
- case Sibling:
- if (index > 0) {
- QAccessibleInterface *parent = queryAccessibleInterface(view);
- int ret = parent->navigate(QAccessible::Child, index, iface);
- delete parent;
- if (*iface)
- return ret;
- }
- return -1;
-
-// From table1 implementation:
-// case Up:
-// case Down:
-// case Left:
-// case Right: {
-// // This is in the "not so nice" category. In order to find out which item
-// // is geometrically around, we have to set the current index, navigate
-// // and restore the index as well as the old selection
-// view()->setUpdatesEnabled(false);
-// const QModelIndex oldIdx = view()->currentIndex();
-// QList<QModelIndex> kids = children();
-// const QModelIndex currentIndex = index ? kids.at(index - 1) : QModelIndex(row);
-// const QItemSelection oldSelection = view()->selectionModel()->selection();
-// view()->setCurrentIndex(currentIndex);
-// const QModelIndex idx = view()->moveCursor(toCursorAction(relation), Qt::NoModifier);
-// view()->setCurrentIndex(oldIdx);
-// view()->selectionModel()->select(oldSelection, QItemSelectionModel::ClearAndSelect);
-// view()->setUpdatesEnabled(true);
-// if (!idx.isValid())
-// return -1;
-
-// if (idx.parent() != row.parent() || idx.row() != row.row())
-// *iface = cell(idx);
-// return index ? kids.indexOf(idx) + 1 : 0; }
- default:
- break;
- }