diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-07-31 12:52:02 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-07-31 11:26:56 +0000 |
commit | 7621bb0f3bba69e0b2849974a335dff4742c8e95 (patch) | |
tree | 03b2fa5649565ee6e8c3f4ab4e32f42767fbffc7 /src/gui/kernel/qplatformsurface.h | |
parent | 0f1f9d42249c6fb1fafde0d6640f983c1f687bb9 (diff) |
Add debug logging operator for QPlatformSurface
Change-Id: I2adecf87fa058bf973f4e4eed0a4c002f8359728
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/gui/kernel/qplatformsurface.h')
-rw-r--r-- | src/gui/kernel/qplatformsurface.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformsurface.h b/src/gui/kernel/qplatformsurface.h index 76e8767a05..4d8854fb40 100644 --- a/src/gui/kernel/qplatformsurface.h +++ b/src/gui/kernel/qplatformsurface.h @@ -58,6 +58,10 @@ QT_BEGIN_NAMESPACE class QPlatformScreen; +#ifndef QT_NO_DEBUG_STREAM +class QDebug; +#endif + class Q_GUI_EXPORT QPlatformSurface { public: @@ -76,6 +80,11 @@ private: friend class QPlatformOffscreenSurface; }; + +#ifndef QT_NO_DEBUG_STREAM +Q_GUI_EXPORT QDebug operator<<(QDebug debug, const QPlatformSurface *surface); +#endif + QT_END_NAMESPACE #endif //QPLATFORMSURFACE_H |