From b619a9eada57451b30f8fde4b35c3143b0fdb715 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Thu, 22 Jun 2017 18:44:52 +0200 Subject: macOS: Make QCocoaNSWindow header file slightly more readable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I09ac42af476feb1d561a77f68999a2754a2e252e Reviewed-by: Tor Arne Vestbø --- src/plugins/platforms/cocoa/qnswindow.h | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) (limited to 'src/plugins/platforms/cocoa') diff --git a/src/plugins/platforms/cocoa/qnswindow.h b/src/plugins/platforms/cocoa/qnswindow.h index 580564aeee..c5f6403478 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 -- cgit v1.2.3