| 748 | } |
| 749 | |
| 750 | QModelIndex InstanceView::indexAt(const QPoint& point) const |
| 751 | { |
| 752 | const_cast<InstanceView*>(this)->executeDelayedItemsLayout(); |
| 753 | |
| 754 | for (int i = 0; i < model()->rowCount(); ++i) { |
| 755 | QModelIndex index = model()->index(i, 0); |
| 756 | if (visualRect(index).contains(point)) { |
| 757 | return index; |
| 758 | } |
| 759 | } |
| 760 | return QModelIndex(); |
| 761 | } |
| 762 | |
| 763 | void InstanceView::setSelection(const QRect& rect, const QItemSelectionModel::SelectionFlags commands) |
| 764 | { |
no test coverage detected