summaryrefslogtreecommitdiffstats
path: root/src/xml/doc
diff options
context:
space:
mode:
authorAxel Spoerl <axel.spoerl@qt.io>2023-06-07 12:28:48 +0200
committerAxel Spoerl <axel.spoerl@qt.io>2023-06-09 23:42:47 +0200
commitc4635c0d5822d0e95ceca867fffb9ba86a2b7bfe (patch)
tree8ab300ecabde40ed59308a285dce4b693214118c /src/xml/doc
parent1797f7946d27b873b34fa30b0856414e27e2daeb (diff)
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>
Diffstat (limited to 'src/xml/doc')
0 files changed, 0 insertions, 0 deletions