summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qstylesheetstyle.cpp
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2024-12-02 18:42:16 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2025-01-20 21:03:50 +0000
commitc917d16f4b9982425b51dfc4947792e36defde35 (patch)
tree9b0911bb70d061642ee20a9d83723f53cd923994 /src/widgets/styles/qstylesheetstyle.cpp
parent2ec4c28470de115c16944653a5d4f6209452d56c (diff)
Widgets: add enum values to QStyleOptionViewItem::ViewItemFeature
Add two new enum values: IsDecoratedRootColumn: notifies the style that the current cell also contains place for the tree column branch indicator so it can e.g. properly draw rounded edges in a cell or complete row. IsDecorationForRootColumn: the item contains the information to draw the tree column branch indicator. Pick-to: 6.9 Task-number: QTBUG-131585 Change-Id: Iee2823fe3a227630f926d0448095a10fad2b0ba7 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets/styles/qstylesheetstyle.cpp')
-rw-r--r--src/widgets/styles/qstylesheetstyle.cpp2
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()) {