| 800 | } |
| 801 | |
| 802 | QList<std::pair<QRect, QModelIndex>> InstanceView::draggablePaintPairs(const QModelIndexList& indices, QRect* r) const |
| 803 | { |
| 804 | Q_ASSERT(r); |
| 805 | QRect& rect = *r; |
| 806 | QList<std::pair<QRect, QModelIndex>> ret; |
| 807 | for (int i = 0; i < indices.count(); ++i) { |
| 808 | const QModelIndex& index = indices.at(i); |
| 809 | const QRect current = geometryRect(index); |
| 810 | ret += std::make_pair(current, index); |
| 811 | rect |= current; |
| 812 | } |
| 813 | return ret; |
| 814 | } |
| 815 | |
| 816 | bool InstanceView::isDragEventAccepted([[maybe_unused]] QDropEvent* event) |
| 817 | { |