diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-07-24 08:30:31 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-09-02 05:29:44 +0200 |
commit | a494da3b2097177774b7b6676acd8e8c46c3e41d (patch) | |
tree | 7350bed455368155d765492e337cdabdac54ba52 /src/gui/kernel/qopenglcontext_platform.h | |
parent | d23c118fd4b733b60bb41ee07c6a91d914afd129 (diff) |
Document native interfaces
As the private headers are not included by default in the precompiled
header QDoc builds for QtGui, create a custom module header for
the documentation build and pull in the required headers.
Add dummy declarations for Windows-specific types for building docs
on non-Windows platforms.
Task-number: QTBUG-83252
Change-Id: I225ed08f68cf4f7c1f1d093424070b13ce36aa51
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/gui/kernel/qopenglcontext_platform.h')
-rw-r--r-- | src/gui/kernel/qopenglcontext_platform.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gui/kernel/qopenglcontext_platform.h b/src/gui/kernel/qopenglcontext_platform.h index 25be8623c6..1b03325c7f 100644 --- a/src/gui/kernel/qopenglcontext_platform.h +++ b/src/gui/kernel/qopenglcontext_platform.h @@ -58,11 +58,15 @@ typedef void *EGLContext; typedef void *EGLDisplay; #endif +#if !defined(Q_OS_MACOS) && defined(Q_CLANG_QDOC) +typedef void *NSOpenGLContext; +#endif + QT_BEGIN_NAMESPACE namespace QPlatformInterface { -#if defined(Q_OS_MACOS) +#if defined(Q_OS_MACOS) || defined(Q_CLANG_QDOC) struct Q_GUI_EXPORT QCocoaGLContext { QT_DECLARE_PLATFORM_INTERFACE(QCocoaGLContext) @@ -71,7 +75,7 @@ struct Q_GUI_EXPORT QCocoaGLContext }; #endif -#if defined(Q_OS_WIN) +#if defined(Q_OS_WIN) || defined(Q_CLANG_QDOC) struct Q_GUI_EXPORT QWGLContext { QT_DECLARE_PLATFORM_INTERFACE(QWGLContext) @@ -81,7 +85,7 @@ struct Q_GUI_EXPORT QWGLContext }; #endif -#if defined(Q_OS_LINUX) +#if defined(Q_OS_LINUX) || defined(Q_CLANG_QDOC) struct Q_GUI_EXPORT QGLXContext { QT_DECLARE_PLATFORM_INTERFACE(QGLXContext) |