qt5base-lts/tests/baseline
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
..
painting Improve surface format request for baseline test of GL painter 2022-04-06 12:44:40 +02:00
shared Baseline tests: slow down cursor blinking 2022-05-05 16:50:31 +02:00
stylesheet Stylesheet: Don't ignore item check indicator styling 2022-05-06 03:48:09 +02:00
text Add baseline test for text rendering 2022-01-04 00:11:48 +01:00
widgets Fix click position for check box and radio button baseline tests 2022-03-14 16:13:06 +01:00
CMakeLists.txt Add baseline test for text rendering 2022-01-04 00:11:48 +01:00