qt6-bb10/src
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
..
3rdparty forkfd: Add support for eventfd(2) in FreeBSD 2023-06-07 17:09:52 -07:00
android Android: add missing private classes to Qt6Android.jar 2023-04-19 09:50:30 +03:00
assets Add Qt icon library for examples 2023-04-22 18:14:38 +03:00
concurrent Clarify module changes in Qt6 2023-05-09 22:36:06 +00:00
corelib Doc: Fix documentation for QProcess::UnixProcessFlag 2023-06-09 18:24:31 +00:00
dbus QDBus: Fix typo in a function name 2023-05-26 15:46:34 +02:00
entrypoint src: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-10 23:36:51 +01:00
gui Doc: Fix documentation issues 2023-06-09 18:24:15 +00:00
network qnetworkreplyfileimpl_p.h: fix header guard name 2023-06-08 18:07:57 +02:00
opengl rhi: Make it a QPA-style private but semi-public API 2023-05-21 15:42:58 +02:00
openglwidgets Make QOpenGLWidget work with QT_WIDGETS_HIGHDPI_DOWNSCALE 2023-05-24 06:55:57 +00:00
platformsupport QXkbCommon: set Qt::KeypadModifier when keypad button is pressed 2023-04-20 06:14:58 +00:00
plugins Correctly focus WASM windows on show 2023-06-09 14:05:06 +02:00
printsupport Fix GCC 13 warning about freeing the global static 2023-06-06 15:26:04 -07:00
sql Update Cached Table example meta-data 2023-05-24 17:29:20 +02:00
testlib Remove the manual undef of the min/max macros, or def NOMINMAX 2023-06-08 01:18:04 +02:00
tools Re-fix QtLibraryInfo compilation issues 2023-06-09 14:45:14 +00:00
widgets QStyleSheetStyle: Default to foreground for unset brushes only 2023-06-09 23:42:47 +02:00
xml Clarify module changes in Qt6 2023-05-09 22:36:06 +00:00
CMakeLists.txt Add Qt icon library for examples 2023-04-22 18:14:38 +03:00