diff options
Diffstat (limited to 'src/plugins/platforms/cocoa/qcocoascreen.h')
-rw-r--r-- | src/plugins/platforms/cocoa/qcocoascreen.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoascreen.h b/src/plugins/platforms/cocoa/qcocoascreen.h index dcf6f1c753..5a5d7fc735 100644 --- a/src/plugins/platforms/cocoa/qcocoascreen.h +++ b/src/plugins/platforms/cocoa/qcocoascreen.h @@ -40,12 +40,16 @@ #ifndef QCOCOASCREEN_H #define QCOCOASCREEN_H -#include <AppKit/AppKit.h> - #include "qcocoacursor.h" #include <qpa/qplatformintegration.h> +#include <CoreGraphics/CoreGraphics.h> +#include <CoreVideo/CoreVideo.h> + +Q_FORWARD_DECLARE_OBJC_CLASS(NSScreen); +Q_FORWARD_DECLARE_OBJC_CLASS(NSArray); + QT_BEGIN_NAMESPACE class QCocoaIntegration; @@ -136,8 +140,10 @@ QDebug operator<<(QDebug debug, const QCocoaScreen *screen); QT_END_NAMESPACE +#if defined(__OBJC__) @interface NSScreen (QtExtras) @property(readonly) CGDirectDisplayID qt_displayId; @end +#endif #endif // QCOCOASCREEN_H |