Add Q_ENUM in QPlatformTheme enums

Not all enums defined in QPlatformTheme used the Q_ENUM macro.
This patch adds the macro where not used after an enum definition.

Change-Id: I372c8f763f5ca27a60864405ed50f51fc7a7f55c
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
bb10
Axel Spoerl 2022-10-04 10:48:22 +02:00
parent 369d4f4b5e
commit e4d317e36f
1 changed files with 5 additions and 0 deletions

View File

@ -98,6 +98,7 @@ public:
FontDialog,
MessageDialog
};
Q_ENUM(DialogType);
enum Palette {
SystemPalette,
@ -120,6 +121,7 @@ public:
TextLineEditPalette,
NPalettes
};
Q_ENUM(Palette)
enum Font {
SystemFont,
@ -238,6 +240,7 @@ public:
// do not add any values below/greater than this
CustomBase = 0xf0000000
};
Q_ENUM(StandardPixmap)
enum KeyboardSchemes
{
@ -248,6 +251,7 @@ public:
GnomeKeyboardScheme,
CdeKeyboardScheme
};
Q_ENUM(KeyboardSchemes)
enum UiEffect
{
@ -260,6 +264,7 @@ public:
AnimateToolBoxUiEffect = 0x40,
HoverEffect = 0x80
};
Q_ENUM(UiEffect)
enum IconOption {
DontUseCustomDirectoryIcons = 0x01