diff --git a/src/plugins/platforms/cocoa/qnswindow.h b/src/plugins/platforms/cocoa/qnswindow.h index 580564aeeee..c5f6403478a 100644 --- a/src/plugins/platforms/cocoa/qnswindow.h +++ b/src/plugins/platforms/cocoa/qnswindow.h @@ -47,17 +47,23 @@ #include QT_FORWARD_DECLARE_CLASS(QCocoaWindow) +Q_FORWARD_DECLARE_OBJC_CLASS(QT_MANGLE_NAMESPACE(QNSWindowHelper)); + +// ------------------------------------------------------------------------- @interface NSWindow (FullScreenProperty) @property(readonly) BOOL qt_fullScreen; @end -@class QT_MANGLE_NAMESPACE(QNSWindowHelper); +// ------------------------------------------------------------------------- @protocol QNSWindowProtocol @property (nonatomic, readonly) QT_MANGLE_NAMESPACE(QNSWindowHelper) *helper; +- (id)initWithContentRect:(NSRect)contentRect screen:(NSScreen*)screen + styleMask:(NSUInteger)windowStyle qPlatformWindow:(QCocoaWindow *)qpw; + - (void)superSendEvent:(NSEvent *)theEvent; - (void)closeAndRelease; @@ -65,6 +71,8 @@ QT_FORWARD_DECLARE_CLASS(QCocoaWindow) typedef NSWindow QCocoaNSWindow; +// ------------------------------------------------------------------------- + @interface QT_MANGLE_NAMESPACE(QNSWindowHelper) : NSObject { QCocoaNSWindow *_window; @@ -87,38 +95,26 @@ typedef NSWindow QCocoaNSWindow; QT_NAMESPACE_ALIAS_OBJC_CLASS(QNSWindowHelper); +// ------------------------------------------------------------------------- + @interface QT_MANGLE_NAMESPACE(QNSWindow) : NSWindow { QNSWindowHelper *_helper; } - -@property (nonatomic, readonly) QNSWindowHelper *helper; - -- (id)initWithContentRect:(NSRect)contentRect - screen:(NSScreen*)screen - styleMask:(NSUInteger)windowStyle - qPlatformWindow:(QCocoaWindow *)qpw; - @end QT_NAMESPACE_ALIAS_OBJC_CLASS(QNSWindow); +// ------------------------------------------------------------------------- + @interface QT_MANGLE_NAMESPACE(QNSPanel) : NSPanel { QNSWindowHelper *_helper; } - -@property (nonatomic, readonly) QNSWindowHelper *helper; - -- (id)initWithContentRect:(NSRect)contentRect - screen:(NSScreen*)screen - styleMask:(NSUInteger)windowStyle - qPlatformWindow:(QCocoaWindow *)qpw; - @end QT_NAMESPACE_ALIAS_OBJC_CLASS(QNSPanel); -@class QT_MANGLE_NAMESPACE(QNSWindowDelegate); +// ------------------------------------------------------------------------- #endif // QNSWINDOW_H