| 66 | } |
| 67 | |
| 68 | void ExpandingTree::drawBranches(QPainter* painter, const QRect& rect, const QModelIndex& index) const |
| 69 | { |
| 70 | const auto& path = index.data(ProjectPathRole).value<Path>(); |
| 71 | if (path.isValid()) { |
| 72 | const auto color = WidgetColorizer::colorForId(qHash(path), palette(), true); |
| 73 | WidgetColorizer::drawBranches(this, painter, rect, index, color); |
| 74 | } |
| 75 | QTreeView::drawBranches(painter, rect, index); |
| 76 | } |
| 77 | |
| 78 | #include "moc_expandingtree.cpp" |