From e768d96e8bc161211b2d4ad377f3fb250f270a9b Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Sat, 7 Feb 2015 13:00:27 +0100 Subject: QtGui: use Q_ENUM instead of Q_ENUMS Change-Id: I92ac2ea218e9134aa36ecb179b8ae790a2dba56a Reviewed-by: Marc Mutz --- src/gui/text/qtextformat.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gui/text/qtextformat.h') diff --git a/src/gui/text/qtextformat.h b/src/gui/text/qtextformat.h index 94c5b83cc0..370e8a96b8 100644 --- a/src/gui/text/qtextformat.h +++ b/src/gui/text/qtextformat.h @@ -126,7 +126,6 @@ Q_GUI_EXPORT QDebug operator<<(QDebug, const QTextFormat &); class Q_GUI_EXPORT QTextFormat { Q_GADGET - Q_ENUMS(FormatType Property ObjectTypes) public: enum FormatType { InvalidFormat = -1, @@ -140,6 +139,7 @@ public: UserFormat = 100 }; + Q_ENUM(FormatType) enum Property { ObjectIndex = 0x0, @@ -257,6 +257,7 @@ public: // -- UserProperty = 0x100000 }; + Q_ENUM(Property) enum ObjectTypes { NoObject, @@ -266,6 +267,7 @@ public: UserObject = 0x1000 }; + Q_ENUM(ObjectTypes) enum PageBreakFlag { PageBreak_Auto = 0, -- cgit v1.2.3