diff options
author | Santhosh Kumar <santhosh.kumar.selvaraj@qt.io> | 2022-11-18 18:24:10 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-11-26 15:07:07 +0100 |
commit | 3ee7a9f85c9d4566223f44f7bab04abafdfca82c (patch) | |
tree | 151cf3d278f83df331988f6b142c1234c526d377 /src/widgets/styles/qcommonstyle.cpp | |
parent | e75c1a00e31723f1c9deb8427725fa0a58fae2a8 (diff) |
Let styles indicate that they support dark mode
Add a style hint that allows styles to indicate that they support
dark mode. The macOS and Fusion styles support dark mode, the other
styles, in particular the Windows Vista style, do not.
Task-number: QTBUG-72028
Change-Id: I02cac2e19a21898663f50f09a4ef419a613a73ec
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/widgets/styles/qcommonstyle.cpp')
-rw-r--r-- | src/widgets/styles/qcommonstyle.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/styles/qcommonstyle.cpp b/src/widgets/styles/qcommonstyle.cpp index c7dee0549e..7fe848d9c0 100644 --- a/src/widgets/styles/qcommonstyle.cpp +++ b/src/widgets/styles/qcommonstyle.cpp @@ -5407,6 +5407,7 @@ int QCommonStyle::styleHint(StyleHint sh, const QStyleOption *opt, const QWidget case SH_ItemView_PaintAlternatingRowColorsForEmptyArea: case SH_ComboBox_UseNativePopup: case SH_Table_AlwaysDrawLeftTopGridLines: + case SH_SupportsDarkAppearance: ret = false; break; case SH_MenuBar_AltKeyNavigation: |