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.

Change-Id: If49e94cdad719b7dc9e8a7b17f6883dc789e62d6
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
(cherry picked from commit ee1bd7decd2c3e55245f89afb710543c95424221)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Marc Mutz 2023-02-07 14:17:22 +01:00 committed by Qt Cherry-pick Bot
parent 310f666615
commit a14c8b4540

View File

@ -47,9 +47,9 @@ namespace Qt {
};
enum class Appearance {
Unknown = 0x0000,
Light = 0x0001,
Dark = 0x0002
Unknown,
Light,
Dark,
};
enum MouseButton {