summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa/qnswindow.h
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2023-03-14 14:08:42 +0100
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2023-08-09 09:18:21 +0200
commitba2d109c5f091cf5307a15b096da56f50ad44412 (patch)
treefcbe6c409c6851f3bd0f8bc62edc913ddcf58c45 /src/plugins/platforms/cocoa/qnswindow.h
parentbc88bb34caf1185a25eda77ee022843c0ca988b0 (diff)
macOS: Add qnswindow_cast helper function
Pick-to: 6.6 Change-Id: If4394e4fbee271c926c0c1c32de1f9783319d994 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/plugins/platforms/cocoa/qnswindow.h')
-rw-r--r--src/plugins/platforms/cocoa/qnswindow.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/cocoa/qnswindow.h b/src/plugins/platforms/cocoa/qnswindow.h
index f69e809133..8f842eba85 100644
--- a/src/plugins/platforms/cocoa/qnswindow.h
+++ b/src/plugins/platforms/cocoa/qnswindow.h
@@ -36,6 +36,8 @@ QT_FORWARD_DECLARE_CLASS(QCocoaWindow)
typedef NSWindow<QNSWindowProtocol> QCocoaNSWindow;
+QCocoaNSWindow *qnswindow_cast(NSWindow *window);
+
#else
class QCocoaNSWindow;
#endif // __OBJC__