diff options
Diffstat (limited to 'src/widgets/styles/qstylesheetstyle.cpp')
-rw-r--r-- | src/widgets/styles/qstylesheetstyle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/styles/qstylesheetstyle.cpp b/src/widgets/styles/qstylesheetstyle.cpp index 468c7a51550..f8b3ff027ec 100644 --- a/src/widgets/styles/qstylesheetstyle.cpp +++ b/src/widgets/styles/qstylesheetstyle.cpp @@ -4875,7 +4875,7 @@ void QStyleSheetStyle::drawPrimitive(PrimitiveElement pe, const QStyleOption *op if (rule.background()->brush.color().alpha() != 1.0) baseStyle()->drawPrimitive(pe, opt, p, w); // Skip border for the branch and draw only the brackground - if (vopt->features & QStyleOptionViewItem::HasDecoration && + if (vopt->features & QStyleOptionViewItem::IsDecorationForRootColumn && (vopt->viewItemPosition == QStyleOptionViewItem::Beginning || vopt->viewItemPosition == QStyleOptionViewItem::OnlyOne) && rule.hasBorder()) { if (rule.hasDrawable()) { |