summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qbrush.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/painting/qbrush.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/painting/qbrush.h')
-rw-r--r--src/gui/painting/qbrush.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/painting/qbrush.h b/src/gui/painting/qbrush.h
index 3dc2230afc..508a901d8f 100644
--- a/src/gui/painting/qbrush.h
+++ b/src/gui/painting/qbrush.h
@@ -167,7 +167,6 @@ typedef QVector<QGradientStop> QGradientStops;
class Q_GUI_EXPORT QGradient
{
Q_GADGET
- Q_ENUMS(Type Spread CoordinateMode)
public:
enum Type {
LinearGradient,
@@ -175,18 +174,21 @@ public:
ConicalGradient,
NoGradient
};
+ Q_ENUM(Type)
enum Spread {
PadSpread,
ReflectSpread,
RepeatSpread
};
+ Q_ENUM(Spread)
enum CoordinateMode {
LogicalMode,
StretchToDeviceMode,
ObjectBoundingMode
};
+ Q_ENUM(CoordinateMode)
enum InterpolationMode {
ColorInterpolation,