qt6-bb10/tests/auto/widgets/styles
Christian Ehrlicher 52103b5499 QStyleSheetStyle: Fix resetting fonts for subwidgets
When a compound widget is styled with a font through a property and the
default styling has no font settings, the font was not reset to the
parent font but left it the styled state.
Fix it by not resolving the current font when the style rule has no font
settings - use the parent font directly instead.

Fixes: QTBUG-131685
Change-Id: I8e79423cfeff24143cd051b282503c4565125b4d
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 5731fe051e48e7a256ef31ae93cfb89ce8d871cc)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 0dd2561d54209666cf78d053caf9b2d94fb1d80e)
2024-12-17 23:57:37 +00:00
..
qmacstyle
qstyle QStyle: block future changes that result in QPainter warnings 2024-11-01 22:54:06 +00:00
qstyleoption
qstylesheetstyle QStyleSheetStyle: Fix resetting fonts for subwidgets 2024-12-17 23:57:37 +00:00
CMakeLists.txt