| 456 | } |
| 457 | |
| 458 | void ProjectTreeView::drawBranches(QPainter* painter, const QRect& rect, const QModelIndex& index) const |
| 459 | { |
| 460 | if (WidgetColorizer::colorizeByProject()) { |
| 461 | const auto projectPath = index.data(ProjectModel::ProjectRole).value<IProject *>()->path(); |
| 462 | const QColor color = WidgetColorizer::colorForId(qHash(projectPath), palette(), true); |
| 463 | WidgetColorizer::drawBranches(this, painter, rect, index, color); |
| 464 | } |
| 465 | |
| 466 | QTreeView::drawBranches(painter, rect, index); |
| 467 | } |
| 468 | |
| 469 | #include "moc_projecttreeview.cpp" |