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

Method drawBranches

plugins/quickopen/expandingtree/expandingtree.cpp:68–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void 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"

Callers

nothing calls this directly

Calls 3

qHashFunction · 0.50
dataMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected