diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2018-09-18 11:10:12 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2018-09-28 19:56:49 +0000 |
commit | 731fa2fa82fbb150d9a977e189302f4fe74cda50 (patch) | |
tree | 6b827ba1f2be044b0ecf0a829c419c1a79b10fa8 /src/quick/items/qquickanchors_p.h | |
parent | d69136698c1b4d26e88276a10eb81f2af5c5bc77 (diff) |
Add missing Q_FLAG declarations in QObject subclasses
This should make debugging easier (qDebug() << value will print
the name rather than the number).
This patch does not address remaining enums in private classes,
namespaces and non-QObject classes.
Change-Id: I1d28e5b15de5a4f267e280ff1823bc5982ac29ca
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'src/quick/items/qquickanchors_p.h')
-rw-r--r-- | src/quick/items/qquickanchors_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/items/qquickanchors_p.h b/src/quick/items/qquickanchors_p.h index 931b963534..c7995cb7a8 100644 --- a/src/quick/items/qquickanchors_p.h +++ b/src/quick/items/qquickanchors_p.h @@ -108,6 +108,7 @@ public: Vertical_Mask = TopAnchor | BottomAnchor | VCenterAnchor | BaselineAnchor }; Q_DECLARE_FLAGS(Anchors, Anchor) + Q_FLAG(Anchors) QQuickAnchorLine left() const; void setLeft(const QQuickAnchorLine &edge); |