| 718 | } |
| 719 | |
| 720 | QModelIndex InstanceView::indexAt(const QPoint &point) const |
| 721 | { |
| 722 | const_cast<InstanceView*>(this)->executeDelayedItemsLayout(); |
| 723 | |
| 724 | for (int i = 0; i < model()->rowCount(); ++i) |
| 725 | { |
| 726 | QModelIndex index = model()->index(i, 0); |
| 727 | if (visualRect(index).contains(point)) |
| 728 | { |
| 729 | return index; |
| 730 | } |
| 731 | } |
| 732 | return QModelIndex(); |
| 733 | } |
| 734 | |
| 735 | void InstanceView::setSelection(const QRect &rect, const QItemSelectionModel::SelectionFlags commands) |
| 736 | { |
no test coverage detected