doc: Fix remaining qdoc warnings in platformheaders

clang needed to see so type definitions that aren't there
for some platforms, so this update provides defaults when
qdoc is running.

Change-Id: I15e635b31dd651457f828f90c8dd132959c826e6
Reviewed-by: Martin Smith <martin.smith@qt.io>
bb10
Martin Smith 2018-01-15 08:37:43 +01:00
parent d2bb79be5e
commit 41a6877fe8
7 changed files with 68 additions and 2 deletions

View File

@ -95,3 +95,48 @@
\internal
\preliminary
*/
/*!
\typedef QEglFSFunctions::Vsp2AddBlendListenerType
\internal
*/
/*!
\typedef QEglFSFunctions::Vsp2AddLayerType
\internal
*/
/*!
\typedef QEglFSFunctions::Vsp2RemoveLayerType
\internal
*/
/*!
\typedef QEglFSFunctions::Vsp2SetLayerBufferType
\internal
*/
/*!
\typedef QEglFSFunctions::Vsp2SetLayerPositionType
\internal
*/
/*! \fn QByteArray QEglFSFunctions::vsp2AddBlendListenerTypeIdentifier()
\internal
*/
/*! \fn QByteArray QEglFSFunctions::vsp2AddLayerTypeIdentifier()
\internal
*/
/*! \fn QByteArray QEglFSFunctions::vsp2RemoveLayerTypeIdentifier()
\internal
*/
/*! \fn QByteArray QEglFSFunctions::vsp2SetLayerBufferTypeIdentifier()
\internal
*/
/*! \fn QByteArray QEglFSFunctions::vsp2SetLayerPositionTypeIdentifier()
\internal
*/

View File

@ -45,6 +45,10 @@
QT_BEGIN_NAMESPACE
#if defined(Q_CLANG_QDOC)
typedef void NSOpenGLContext;
#endif
struct QCocoaNativeContext
{
QCocoaNativeContext()

View File

@ -46,6 +46,11 @@
QT_BEGIN_NAMESPACE
#if defined(Q_CLANG_QDOC)
typedef int EGLContext;
typedef int EGLDisplay;
#endif
struct QEGLNativeContext
{
QEGLNativeContext()

View File

@ -46,6 +46,13 @@
QT_BEGIN_NAMESPACE
#if defined(Q_CLANG_QDOC)
typedef int GLXContext;
typedef void Display;
typedef int Window;
typedef int VisualID;
#endif
struct QGLXNativeContext
{
QGLXNativeContext()

View File

@ -77,7 +77,7 @@
*/
/*!
\fn QGLXNativeContext::QGLXNativeContext(GLXContext ctx, Display *dpy = 0, Window wnd = 0, VisualID vid = 0)
\fn QGLXNativeContext::QGLXNativeContext(GLXContext ctx, Display *dpy, Window wnd, VisualID vid)
Constructs a new instance with the provided \a ctx, \a dpy, \a wnd, \a vid handles.
*/

View File

@ -46,6 +46,11 @@
QT_BEGIN_NAMESPACE
#if defined(Q_CLANG_QDOC)
typedef int HGLRC;
typedef int HWND;
#endif
class QWGLNativeContext
{
public:

View File

@ -124,7 +124,7 @@
*/
/*!
\fn QByteArray setWindowActivationBehaviorIdentifier()
\fn QByteArray QWindowsWindowFunctions::setWindowActivationBehaviorIdentifier()
This function returns a bytearray that can be used to query
QGuiApplication::platformFunction() to retrieve the SetWindowActivationBehaviorType