| 761 | } |
| 762 | |
| 763 | QModelIndex InstanceView::indexAt(const QPoint &point) const |
| 764 | { |
| 765 | const_cast<InstanceView*>(this)->executeDelayedItemsLayout(); |
| 766 | |
| 767 | for (int i = 0; i < model()->rowCount(); ++i) |
| 768 | { |
| 769 | QModelIndex index = model()->index(i, 0); |
| 770 | if (visualRect(index).contains(point)) |
| 771 | { |
| 772 | return index; |
| 773 | } |
| 774 | } |
| 775 | return QModelIndex(); |
| 776 | } |
| 777 | |
| 778 | void InstanceView::setSelection(const QRect &rect, const QItemSelectionModel::SelectionFlags commands) |
| 779 | { |
no test coverage detected