From e4d317e36ffa95a7fd6e1b981100c88012b12833 Mon Sep 17 00:00:00 2001 From: Axel Spoerl Date: Tue, 4 Oct 2022 10:48:22 +0200 Subject: [PATCH] Add Q_ENUM in QPlatformTheme enums MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ø --- src/gui/kernel/qplatformtheme.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/kernel/qplatformtheme.h b/src/gui/kernel/qplatformtheme.h index 11f57dab20..7462daa2a4 100644 --- a/src/gui/kernel/qplatformtheme.h +++ b/src/gui/kernel/qplatformtheme.h @@ -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