qt5base-lts/tests/baseline/stylesheet
Volker Hilsheimer 2b99a71b22 Stylesheet: Don't ignore item check indicator styling
Amends cf52d725156811754cd4e094b0984864795d1d58, after which most
indicator styling was no longer taken into account unless some other
item aspects were styled. Calling the baseStyle to draw the entire item
doesn't call back into the style sheet style for the indicator itself.

The QCommonStyle code that breaks the item up into individual sub
elements cannot be called for each element. E.g. turning off the check
indicator feature changes the layout of the item.

So if the indicator is styled, then we have to draw an otherwise empty
item with the style sheet style, and then clip the already painted rect
before calling the base style to draw text and highlighting with the
correct palette.

Add baseline test for QTreeView with different style sheets.

Fixes: QTBUG-102820
Pick-to: 6.3 6.2
Change-Id: I1da5676cc63556230eac525bc550457ebd495a58
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2022-05-06 03:48:09 +02:00
..
icons Fix and complete style sheet support for QToolButton 2021-11-26 09:36:07 +01:00
qss Stylesheet: Don't ignore item check indicator styling 2022-05-06 03:48:09 +02:00
CMakeLists.txt Share common code for baseline-testing widget UIs 2021-11-26 22:40:54 +01:00
icons.qrc Fix and complete style sheet support for QToolButton 2021-11-26 09:36:07 +01:00
stylesheet.pro Fix and complete style sheet support for QToolButton 2021-11-26 09:36:07 +01:00
tst_baseline_stylesheet.cpp Stylesheet: Don't ignore item check indicator styling 2022-05-06 03:48:09 +02:00