| 907 | } |
| 908 | |
| 909 | QRect ModListView::visualRect(const QModelIndex& index) const |
| 910 | { |
| 911 | // this shift the visualRect() from QTreeView to match the new actual |
| 912 | // zone after removing indentation (see the ModListStyledItemDelegate) |
| 913 | QRect rect = QTreeView::visualRect(index); |
| 914 | if (hasCollapsibleSeparators() && index.column() == 0 && index.isValid() && |
| 915 | index.parent().isValid()) { |
| 916 | rect.adjust(-indentation(), 0, 0, 0); |
| 917 | } |
| 918 | return rect; |
| 919 | } |
| 920 | |
| 921 | void ModListView::drawBranches(QPainter* painter, const QRect& rect, |
| 922 | const QModelIndex& index) const |
no test coverage detected