diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2017-07-12 15:18:45 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2017-07-13 22:09:18 +0000 |
commit | 3bac08c00fb411fe99c824a4e3bd9421cd6ccc27 (patch) | |
tree | ef57a92e51b6c97680a9ba570056bd13482d208f /src/plugins/platforms/cocoa/qcocoawindow.h | |
parent | 5477537327c2ae66159ce2874f1f327c320205cf (diff) |
macOS: Improve QDebug output for QNSView and QCocoaWindow
By printing the corresponding QPlatformWindow and QWindow for a given
QNSView we make it easier to track issues regardless of which of the
views/windows are being logged.
Change-Id: I4a42eff7f87cf3c8e722cd6ad8baccd4eeab8eb3
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/plugins/platforms/cocoa/qcocoawindow.h')
-rw-r--r-- | src/plugins/platforms/cocoa/qcocoawindow.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoawindow.h b/src/plugins/platforms/cocoa/qcocoawindow.h index 57e00e6bfe..4b616665f7 100644 --- a/src/plugins/platforms/cocoa/qcocoawindow.h +++ b/src/plugins/platforms/cocoa/qcocoawindow.h @@ -54,6 +54,11 @@ #include "qt_mac_p.h" QT_BEGIN_NAMESPACE + +#ifndef QT_NO_DEBUG_STREAM +class QDebug; +#endif + // QCocoaWindow // // QCocoaWindow is an NSView (not an NSWindow!) in the sense @@ -287,6 +292,10 @@ public: // for QNSView bool m_hasWindowFilePath; }; +#ifndef QT_NO_DEBUG_STREAM +QDebug operator<<(QDebug debug, const QCocoaWindow *window); +#endif + QT_END_NAMESPACE #endif // QCOCOAWINDOW_H |