| 731 | } |
| 732 | |
| 733 | QModelIndex InstanceView::indexAt(const QPoint& point) const |
| 734 | { |
| 735 | const_cast<InstanceView*>(this)->executeDelayedItemsLayout(); |
| 736 | |
| 737 | for (int i = 0; i < model()->rowCount(); ++i) { |
| 738 | QModelIndex index = model()->index(i, 0); |
| 739 | if (visualRect(index).contains(point)) { |
| 740 | return index; |
| 741 | } |
| 742 | } |
| 743 | return QModelIndex(); |
| 744 | } |
| 745 | |
| 746 | void InstanceView::setSelection(const QRect& rect, const QItemSelectionModel::SelectionFlags commands) |
| 747 | { |
no test coverage detected