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