From 09e212eec0c1b3dc7a3e951413de2d0332e44a78 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 13 Feb 2018 11:41:31 +0100 Subject: Add debug operators for QGraphicsSceneEvent-based classes Modeled on the QtGui's debug operator for its events. Change-Id: I2c92aa017178cb8bde2d2b1eaba7cb130e874c13 Reviewed-by: Shawn Rutledge --- src/widgets/graphicsview/qgraphicssceneevent.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/widgets/graphicsview/qgraphicssceneevent.h') 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 -- cgit v1.2.3