| 361 | } |
| 362 | |
| 363 | QAccessibleInterface* AccessibleInstanceView::childAt(int x, int y) const |
| 364 | { |
| 365 | QPoint viewportOffset = view()->viewport()->mapTo(view(), QPoint(0, 0)); |
| 366 | QPoint indexPosition = view()->mapFromGlobal(QPoint(x, y) - viewportOffset); |
| 367 | // FIXME: if indexPosition < 0 in one coordinate, return header |
| 368 | |
| 369 | QModelIndex index = view()->indexAt(indexPosition); |
| 370 | if (index.isValid()) { |
| 371 | return child(logicalIndex(index)); |
| 372 | } |
| 373 | return 0; |
| 374 | } |
| 375 | |
| 376 | int AccessibleInstanceView::childCount() const |
| 377 | { |