summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qnamespace.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2023-02-07 14:17:22 +0100
committerMarc Mutz <marc.mutz@qt.io>2023-02-08 08:37:21 +0100
commitee1bd7decd2c3e55245f89afb710543c95424221 (patch)
tree64db362e2366fb605f50ab7fe8c3cf5ed65e218d /src/corelib/global/qnamespace.h
parentc3455ded494adf6542ba5a766151ebd30cdd9016 (diff)
Qt::Appearance: don't assign values to enumerators
The compiler does that for us. This makes the enum look like an enum again. A non-flags enum shouldn't have intializers of the form 0xNNNN, as that makes it looks like flags. Found in API review. Pick-to: 6.5 Change-Id: If49e94cdad719b7dc9e8a7b17f6883dc789e62d6 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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h
index 1bf5bb6169..d0bb4a2b85 100644
--- a/src/corelib/global/qnamespace.h
+++ b/src/corelib/global/qnamespace.h
@@ -47,9 +47,9 @@ namespace Qt {
};
enum class Appearance {
- Unknown = 0x0000,
- Light = 0x0001,
- Dark = 0x0002
+ Unknown,
+ Light,
+ Dark,
};
enum MouseButton {