MCPcopy Create free account
hub / github.com/KDE/kdevelop / drawBranches

Method drawBranches

plugins/projectmanagerview/projecttreeview.cpp:458–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456}
457
458void 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"

Callers

nothing calls this directly

Calls 3

qHashFunction · 0.50
pathMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected