summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-10-08 12:16:02 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-10-12 13:03:59 +0200
commitb1e234b2242b7ed1ce4001ae29abecf5ae74fadf (patch)
treedc581ec25f8b437a3279d2362b87f8e025178b4c /src/gui
parent2b14556a96cadd05dd36f012d7636dd17b91fc12 (diff)
macOS: Always include non-GL native interfaces
Change-Id: Idc8e76b5cb7af8b8df54820a4150ac7d1e3d8944 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/platform/macos/qcocoanativeinterface.mm7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/platform/macos/qcocoanativeinterface.mm b/src/gui/platform/macos/qcocoanativeinterface.mm
index c075a07e66..f9d5f5dbe5 100644
--- a/src/gui/platform/macos/qcocoanativeinterface.mm
+++ b/src/gui/platform/macos/qcocoanativeinterface.mm
@@ -50,13 +50,14 @@ QT_BEGIN_NAMESPACE
using namespace QNativeInterface::Private;
+QT_DEFINE_PRIVATE_NATIVE_INTERFACE(QCocoaWindow);
+QT_DEFINE_PRIVATE_NATIVE_INTERFACE(QCocoaMenu);
+QT_DEFINE_PRIVATE_NATIVE_INTERFACE(QCocoaMenuBar);
+
#ifndef QT_NO_OPENGL
QT_DEFINE_NATIVE_INTERFACE(QCocoaGLContext, QOpenGLContext);
QT_DEFINE_PRIVATE_NATIVE_INTERFACE(QCocoaGLIntegration);
-QT_DEFINE_PRIVATE_NATIVE_INTERFACE(QCocoaWindow);
-QT_DEFINE_PRIVATE_NATIVE_INTERFACE(QCocoaMenu);
-QT_DEFINE_PRIVATE_NATIVE_INTERFACE(QCocoaMenuBar);
QOpenGLContext *QNativeInterface::QCocoaGLContext::fromNative(NSOpenGLContext *nativeContext, QOpenGLContext *shareContext)
{