summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qpalette.h
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2015-02-07 13:00:27 +0100
committerOlivier Goffart (Woboq GmbH) <ogoffart@woboq.com>2015-02-08 12:18:52 +0000
commite768d96e8bc161211b2d4ad377f3fb250f270a9b (patch)
treeffff4da772e6edee99b405660363b8192b20e49d /src/gui/kernel/qpalette.h
parentba7cedb058455942dda337223a170b4f9566f0ef (diff)
QtGui: use Q_ENUM instead of Q_ENUMS
Change-Id: I92ac2ea218e9134aa36ecb179b8ae790a2dba56a Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/gui/kernel/qpalette.h')
-rw-r--r--src/gui/kernel/qpalette.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/kernel/qpalette.h b/src/gui/kernel/qpalette.h
index c877084c09..d00ddf1292 100644
--- a/src/gui/kernel/qpalette.h
+++ b/src/gui/kernel/qpalette.h
@@ -47,7 +47,6 @@ class QVariant;
class Q_GUI_EXPORT QPalette
{
Q_GADGET
- Q_ENUMS(ColorGroup ColorRole)
public:
QPalette();
QPalette(const QColor &button);
@@ -80,6 +79,7 @@ public:
// Do not change the order, the serialization format depends on it
enum ColorGroup { Active, Disabled, Inactive, NColorGroups, Current, All, Normal = Active };
+ Q_ENUM(ColorGroup)
enum ColorRole { WindowText, Button, Light, Midlight, Dark, Mid,
Text, BrightText, ButtonText, Base, Window, Shadow,
Highlight, HighlightedText,
@@ -90,6 +90,7 @@ public:
NColorRoles = ToolTipText + 1,
Foreground = WindowText, Background = Window
};
+ Q_ENUM(ColorRole)
inline ColorGroup currentColorGroup() const { return static_cast<ColorGroup>(data.current_group); }
inline void setCurrentColorGroup(ColorGroup cg) { data.current_group = cg; }