qt5base-lts/tests/baseline
Volker Hilsheimer 483ae6c448 StyleSheet: use item background rule when filling row backround
QTreeView draws the different sub-rects of an item's background over
multiple calls to drawPrimitive(PE_PanelItemViewRow). The item row is
not separately stylable, but the item might have a styled background
property. To get a consistent background, we must use the item's
background rule when filling the item's row background.

To fix that, delegate the filling of the branch background to
drawPrimitive(PE_PanelItemViewRow), and implement PE_PanelItemViewRow
handling to render the rule for the ViewItem pseudo element if there is
a background rule defined for it.

Add a baseline test stylesheet for this scenario. Note that the selection
in an item view is better styled via the selection-background-color
qss property.

Task-number: QTBUG-73251
Task-number: QTBUG-106227
Pick-to: 6.4 6.2
Change-Id: I5d0c170f78009fe5015dd749975e6df27485b3b8
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2022-10-25 05:16:15 +02:00
..
painting Port tests away from using q{Set}GlobalQHashSeed 2022-08-26 14:15:24 +02:00
shared Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
stylesheet StyleSheet: use item background rule when filling row backround 2022-10-25 05:16:15 +02:00
text Deprecate QApplication::setActiveWindow() and mark as internal 2022-08-27 20:22:29 +02:00
widgets Baseline test: add coverage for treeview with alternate rows 2022-10-24 14:20:28 +02:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00