diff options
author | Axel Spoerl <axel.spoerl@qt.io> | 2022-09-15 15:16:35 +0200 |
---|---|---|
committer | Axel Spoerl <axel.spoerl@qt.io> | 2022-09-16 12:50:59 +0200 |
commit | c8cf0f17b80b143f3543067a82c1aa29f0e4e386 (patch) | |
tree | e9cdf0851a163c75ce80dafae12f4a5b331b99d7 /src/corelib/global/qnamespace.h | |
parent | 986fef5ca16077bc7662369a685bd4a86ec6610e (diff) |
Add enum class Qt::Appearance
It has been decided to add an appearance property in QStyleHints, which
will be propagated to classes that do not include QPlatformTheme.
Therefore an appearance enum class is added to the Qt namespace, thus
being available to all Qt classes.
Task-number: QTBUG-106383
Change-Id: Icff94b0d7adca954ce74241d6811401d41f053e6
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/corelib/global/qnamespace.h')
-rw-r--r-- | src/corelib/global/qnamespace.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h index 5c8ed2e8e5..52a9099964 100644 --- a/src/corelib/global/qnamespace.h +++ b/src/corelib/global/qnamespace.h @@ -46,6 +46,12 @@ namespace Qt { transparent }; + enum class Appearance { + Unknown = 0x0000, + Light = 0x0001, + Dark = 0x0002 + }; + enum MouseButton { NoButton = 0x00000000, LeftButton = 0x00000001, @@ -1745,6 +1751,7 @@ namespace Qt { Q_ENUM_NS(DayOfWeek) Q_ENUM_NS(CursorShape) Q_ENUM_NS(GlobalColor) + Q_ENUM_NS(Appearance) Q_ENUM_NS(AspectRatioMode) Q_ENUM_NS(TransformationMode) Q_FLAG_NS(ImageConversionFlags) |