From 7293200ace12f4870b87bb6a1f5a22ef53bf52cd Mon Sep 17 00:00:00 2001 From: Aaron Kennedy Date: Sun, 28 Jun 2015 21:31:30 +1000 Subject: Add attribute to enable font and palette propagation in QSS. By default when using Qt Style Sheets, a widget does not inherit its font and palette from its parent widget. With the Qt::AA_UseStyleSheetPropagationInWidgetStyles application attribute set, propagation when using Qt Style Sheets behaves like it does with regular QWidget::setPalette() and QWidget::setFont() calls. [ChangeLog][QtWidgets] Added the Qt::AA_UseStyleSheetPropagationInWidgetStyles attribute which enables font and palette propagation for Qt Style Sheets. Task-number: QTBUG-37580 Change-Id: I3038c13d61e32625a1a05291c5394eaefd376a68 Reviewed-by: Samuel Nevala Reviewed-by: Lars Knoll --- src/corelib/global/qnamespace.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/corelib/global/qnamespace.h') diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h index e62b658afc..056e519e56 100644 --- a/src/corelib/global/qnamespace.h +++ b/src/corelib/global/qnamespace.h @@ -498,6 +498,7 @@ public: AA_ShareOpenGLContexts = 18, AA_SetPalette = 19, AA_NoHighDpiScaling = 20, + AA_UseStyleSheetPropagationInWidgetStyles = 21, // ### Qt 6: remove me // Add new attributes before this line AA_AttributeCount -- cgit v1.2.3