MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / visualRect

Method visualRect

src/modlistview.cpp:909–919  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

907}
908
909QRect 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
921void ModListView::drawBranches(QPainter* painter, const QRect& rect,
922 const QModelIndex& index) const

Callers 2

helpEventMethod · 0.80
copySelectionMethod · 0.80

Calls 2

isValidMethod · 0.45
parentMethod · 0.45

Tested by

no test coverage detected