qt6-bb10/tests/baseline/stylesheet
Volker Hilsheimer 74e0ed217f StyleSheet: respect a font weight set for header sections
QCommonStyle sets the font for a selected header section to bold.
This overrides the font weight a calling style might already have set,
e.g. when a style sheet is applied to explicitly set a weight for a
checked header section:

QHeaderView::section:checked {
   font-size: 20px
   font-weight: normal
}

Since setting the weight on a font sets the respective resolve-mask
bit, we can avoid overwriting a weight that is already set explicitly.

Add baseline test coverage using a QTableWidget.

Fixes: QTBUG-122180
Pick-to: 6.7 6.5
Change-Id: I8c6279ad2fd8c5718ebea26e27c64ae823625748
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-11 04:35:22 +02:00
..
icons Fix and complete style sheet support for QToolButton 2021-11-26 09:36:07 +01:00
qss StyleSheet: respect a font weight set for header sections 2024-04-11 04:35:22 +02:00
CMakeLists.txt Deprecate QApplication::setActiveWindow() and mark as internal 2022-08-27 20:22:29 +02:00
icons.qrc Fix and complete style sheet support for QToolButton 2021-11-26 09:36:07 +01:00
stylesheet.pro Fix and complete style sheet support for QToolButton 2021-11-26 09:36:07 +01:00
tst_baseline_stylesheet.cpp StyleSheet: respect a font weight set for header sections 2024-04-11 04:35:22 +02:00