diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-02-13 11:41:31 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-02-15 07:28:35 +0000 |
commit | 09e212eec0c1b3dc7a3e951413de2d0332e44a78 (patch) | |
tree | d2c87ea65218201553373a38fafbdbe31c00ab3e /src/widgets/graphicsview/qgraphicssceneevent.h | |
parent | 45894408913f62f6f25a302d8ed07af57ac7db5d (diff) |
Add debug operators for QGraphicsSceneEvent-based classes
Modeled on the QtGui's debug operator for its events.
Change-Id: I2c92aa017178cb8bde2d2b1eaba7cb130e874c13
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/widgets/graphicsview/qgraphicssceneevent.h')
-rw-r--r-- | src/widgets/graphicsview/qgraphicssceneevent.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/widgets/graphicsview/qgraphicssceneevent.h b/src/widgets/graphicsview/qgraphicssceneevent.h index 77b53e401d..9d940be2c0 100644 --- a/src/widgets/graphicsview/qgraphicssceneevent.h +++ b/src/widgets/graphicsview/qgraphicssceneevent.h @@ -320,6 +320,10 @@ public: void setNewPos(const QPointF &pos); }; +#ifndef QT_NO_DEBUG_STREAM +Q_WIDGETS_EXPORT QDebug operator<<(QDebug, const QGraphicsSceneEvent *); +#endif + QT_END_NAMESPACE #endif |