qt5base-lts/tests/auto/widgets/styles/qstylesheetstyle
Axel Spoerl c4635c0d58 QStyleSheetStyle: Default to foreground for unset brushes only
If a foreground style has been defined in the style sheet,
QStyleSheetStyle populates its brushes for the color roles ButtonText,
WindowText, Text, and the widget's foregroundRole with the foreground
brush. PlaceholderText is set to the same brush with a modified color.

That sets their resolve bits in QStyleSheeetStyle's palette and
prevents these color roles from being inherited by the widget's
palette - in contrast to all other brushes.

This patch makes the brushes mentioned default to the widget's palette
if they are set there. It adds a test in tst_QStyleSheetStyle.

Fixes: QTBUG-93009
Pick-to: 6.6 6.5
Change-Id: Ie3df9dbd17b96fa72beee90792fc7eca1933cdbe
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2023-06-09 23:42:47 +02:00
..
images StyleSheetStyle: Load @Nx images 2018-10-04 07:01:05 +00:00
.gitignore Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00
BLACKLIST tst_qstylesheetstyle: blacklist tests for QEMU ARMv7 2021-01-07 16:53:43 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00
resources.qrc StyleSheetStyle: Load @Nx images 2018-10-04 07:01:05 +00:00
tst_qstylesheetstyle.cpp QStyleSheetStyle: Default to foreground for unset brushes only 2023-06-09 23:42:47 +02:00