diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-12-08 09:20:31 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-12-08 17:56:48 +0100 |
commit | c62c2aac752c6b63d5afd2f7a10dd9f43c99ae7b (patch) | |
tree | 1586712236a2da10e84d5104cb5e6fa01a040b12 /src/widgets/styles/qstyle.cpp | |
parent | 501018ea3358b12f26bbe50e24e87a8ba88dae43 (diff) |
Revert "Let styles indicate that they support dark mode"
This reverts commit 3ee7a9f85c9d4566223f44f7bab04abafdfca82c.
Styles that don't support dark mode can overwrite the palette in
a QStyle::polish(QPalette &) override instead.
Change-Id: I8b84d822d91be5b3f67f76f791a1330bba7ea546
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
Diffstat (limited to 'src/widgets/styles/qstyle.cpp')
-rw-r--r-- | src/widgets/styles/qstyle.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/widgets/styles/qstyle.cpp b/src/widgets/styles/qstyle.cpp index e5025a05ea..c04b4c1aeb 100644 --- a/src/widgets/styles/qstyle.cpp +++ b/src/widgets/styles/qstyle.cpp @@ -1987,13 +1987,6 @@ void QStyle::drawItemPixmap(QPainter *painter, const QRect &rect, int alignment, not when the header is hidden. Defaults to false. This enum value has been introduced in Qt 6.3. - \value SH_SupportsDarkAppearance - Determines whether the style is able to render a UI correctly with - a dark palette. Defaults to false. Style implementors should return true - if they have tested the style with a palette where the background colors - are darker than the foreground colors. - This enum value has been introduced in Qt 6.5. - \sa styleHint() */ |