Account for rootIsDecorated when painting tree lines in RDTreeView

This commit is contained in:
baldurk
2021-04-12 11:39:02 +01:00
parent 14698bb451
commit 34ea6529c9
+2 -1
View File
@@ -569,7 +569,8 @@ void RDTreeView::drawBranches(QPainter *painter, const QRect &rect, const QModel
// fill in the background behind the lines for the whole row, since by default it doesn't show up
// behind the tree lines.
QRect allLinesRect(rect.left(), rect.top(), (parents.count() + 1) * indentation(), rect.height());
QRect allLinesRect(rect.left(), rect.top(),
(parents.count() + (rootIsDecorated() ? 1 : 0)) * indentation(), rect.height());
QStyleOptionViewItem opt;
opt.initFrom(this);