summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qtabwidget.h
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2015-02-07 13:00:49 +0100
committerOlivier Goffart (Woboq GmbH) <ogoffart@woboq.com>2015-02-08 12:19:07 +0000
commit163b8529516ddda24833f635f737863ba98bd688 (patch)
treecf7fbb32c6f240526132e6a69f214e31a2cbaf3e /src/widgets/widgets/qtabwidget.h
parente768d96e8bc161211b2d4ad377f3fb250f270a9b (diff)
QtWidgets: use Q_ENUM instead of Q_ENUMS
Change-Id: Id5280c1d9feab95e1506569f3d0eb23eeb74935f Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/widgets/widgets/qtabwidget.h')
-rw-r--r--src/widgets/widgets/qtabwidget.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/widgets/qtabwidget.h b/src/widgets/widgets/qtabwidget.h
index dc5c49c99c..4913a2197a 100644
--- a/src/widgets/widgets/qtabwidget.h
+++ b/src/widgets/widgets/qtabwidget.h
@@ -49,7 +49,6 @@ class QStyleOptionTabWidgetFrame;
class Q_WIDGETS_EXPORT QTabWidget : public QWidget
{
Q_OBJECT
- Q_ENUMS(TabPosition TabShape)
Q_PROPERTY(TabPosition tabPosition READ tabPosition WRITE setTabPosition)
Q_PROPERTY(TabShape tabShape READ tabShape WRITE setTabShape)
Q_PROPERTY(int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentChanged)
@@ -100,6 +99,7 @@ public:
int count() const;
enum TabPosition { North, South, West, East };
+ Q_ENUM(TabPosition)
TabPosition tabPosition() const;
void setTabPosition(TabPosition);
@@ -110,6 +110,7 @@ public:
void setMovable(bool movable);
enum TabShape { Rounded, Triangular };
+ Q_ENUM(TabShape)
TabShape tabShape() const;
void setTabShape(TabShape s);