| 35 | } |
| 36 | |
| 37 | QColor WidgetColorizer::blendBackground(const QColor& color, float ratio, |
| 38 | const QColor& /*foreground*/, const QColor& background) |
| 39 | { |
| 40 | // adapt contrast |
| 41 | return KColorUtils::mix(background, color, ratio); |
| 42 | } |
| 43 | |
| 44 | void WidgetColorizer::drawBranches(const QTreeView* treeView, QPainter* painter, |
| 45 | const QRect& rect, const QModelIndex& /*index*/, |