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

Method drawBranches

kdevplatform/util/widgetcolorizer.cpp:44–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void WidgetColorizer::drawBranches(const QTreeView* treeView, QPainter* painter,
45 const QRect& rect, const QModelIndex& /*index*/,
46 const QColor& baseColor)
47{
48 QRect newRect(rect);
49 newRect.setWidth(treeView->indentation());
50 painter->fillRect(newRect, baseColor);
51}
52
53QColor WidgetColorizer::colorForId(uint id, const QPalette& activePalette, bool forBackground)
54{

Callers

nothing calls this directly

Calls 1

indentationMethod · 0.45

Tested by

no test coverage detected