Fix no-OpenGL build after introducing QOpenGLContext platform interface
Change-Id: I355f43c200adb3a12e71e0b02aa10060672bb9e4 Reviewed-by: Nodir Temirkhodjaev <nodir.temir@gmail.com> Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
parent
dd34ac5c34
commit
39d99c714b
@ -48,6 +48,8 @@ QT_BEGIN_NAMESPACE
|
|||||||
|
|
||||||
using namespace QPlatformInterface::Private;
|
using namespace QPlatformInterface::Private;
|
||||||
|
|
||||||
|
#ifndef QT_NO_OPENGL
|
||||||
|
|
||||||
QT_DEFINE_PLATFORM_INTERFACE(QCocoaGLContext, QOpenGLContext);
|
QT_DEFINE_PLATFORM_INTERFACE(QCocoaGLContext, QOpenGLContext);
|
||||||
QT_DEFINE_PRIVATE_PLATFORM_INTERFACE(QCocoaGLIntegration);
|
QT_DEFINE_PRIVATE_PLATFORM_INTERFACE(QCocoaGLIntegration);
|
||||||
|
|
||||||
@ -57,4 +59,6 @@ QOpenGLContext *QPlatformInterface::QCocoaGLContext::fromNative(NSOpenGLContext
|
|||||||
&QCocoaGLIntegration::createOpenGLContext>(nativeContext, shareContext);
|
&QCocoaGLIntegration::createOpenGLContext>(nativeContext, shareContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // QT_NO_OPENGL
|
||||||
|
|
||||||
QT_END_NAMESPACE
|
QT_END_NAMESPACE
|
||||||
|
@ -49,6 +49,8 @@ QT_BEGIN_NAMESPACE
|
|||||||
|
|
||||||
using namespace QPlatformInterface::Private;
|
using namespace QPlatformInterface::Private;
|
||||||
|
|
||||||
|
#ifndef QT_NO_OPENGL
|
||||||
|
|
||||||
#if defined(Q_OS_LINUX)
|
#if defined(Q_OS_LINUX)
|
||||||
QT_DEFINE_PLATFORM_INTERFACE(QGLXContext, QOpenGLContext);
|
QT_DEFINE_PLATFORM_INTERFACE(QGLXContext, QOpenGLContext);
|
||||||
QT_DEFINE_PRIVATE_PLATFORM_INTERFACE(QGLXIntegration);
|
QT_DEFINE_PRIVATE_PLATFORM_INTERFACE(QGLXIntegration);
|
||||||
@ -77,4 +79,6 @@ QOpenGLContext *QPlatformInterface::QEGLContext::fromNative(EGLContext context,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif // QT_NO_OPENGL
|
||||||
|
|
||||||
QT_END_NAMESPACE
|
QT_END_NAMESPACE
|
||||||
|
@ -46,6 +46,8 @@ QT_BEGIN_NAMESPACE
|
|||||||
|
|
||||||
using namespace QPlatformInterface::Private;
|
using namespace QPlatformInterface::Private;
|
||||||
|
|
||||||
|
#ifndef QT_NO_OPENGL
|
||||||
|
|
||||||
QT_DEFINE_PLATFORM_INTERFACE(QWGLContext, QOpenGLContext);
|
QT_DEFINE_PLATFORM_INTERFACE(QWGLContext, QOpenGLContext);
|
||||||
QT_DEFINE_PRIVATE_PLATFORM_INTERFACE(QWindowsGLIntegration);
|
QT_DEFINE_PRIVATE_PLATFORM_INTERFACE(QWindowsGLIntegration);
|
||||||
|
|
||||||
@ -61,4 +63,6 @@ QOpenGLContext *QPlatformInterface::QWGLContext::fromNative(HGLRC context, HWND
|
|||||||
&QWindowsGLIntegration::createOpenGLContext>(context, window, shareContext);
|
&QWindowsGLIntegration::createOpenGLContext>(context, window, shareContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // QT_NO_OPENGL
|
||||||
|
|
||||||
QT_END_NAMESPACE
|
QT_END_NAMESPACE
|
||||||
|
@ -62,8 +62,10 @@ Q_FORWARD_DECLARE_OBJC_CLASS(NSToolbar);
|
|||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
|
|
||||||
class QCocoaIntegration : public QObject, public QPlatformIntegration,
|
class QCocoaIntegration : public QObject, public QPlatformIntegration
|
||||||
public QPlatformInterface::Private::QCocoaGLIntegration
|
#ifndef QT_NO_OPENGL
|
||||||
|
, public QPlatformInterface::Private::QCocoaGLIntegration
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
@ -68,7 +68,9 @@ class QFbVtHandler;
|
|||||||
class QEvdevKeyboardManager;
|
class QEvdevKeyboardManager;
|
||||||
|
|
||||||
class Q_EGLFS_EXPORT QEglFSIntegration : public QPlatformIntegration, public QPlatformNativeInterface
|
class Q_EGLFS_EXPORT QEglFSIntegration : public QPlatformIntegration, public QPlatformNativeInterface
|
||||||
|
#ifndef QT_NO_OPENGL
|
||||||
, public QPlatformInterface::Private::QEGLIntegration
|
, public QPlatformInterface::Private::QEGLIntegration
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
QEglFSIntegration();
|
QEglFSIntegration();
|
||||||
|
@ -54,7 +54,10 @@ struct QWindowsWindowData;
|
|||||||
class QWindowsWindow;
|
class QWindowsWindow;
|
||||||
class QWindowsStaticOpenGLContext;
|
class QWindowsStaticOpenGLContext;
|
||||||
|
|
||||||
class QWindowsIntegration : public QPlatformIntegration, public QPlatformInterface::Private::QWindowsGLIntegration
|
class QWindowsIntegration : public QPlatformIntegration
|
||||||
|
#ifndef QT_NO_OPENGL
|
||||||
|
, public QPlatformInterface::Private::QWindowsGLIntegration
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
Q_DISABLE_COPY_MOVE(QWindowsIntegration)
|
Q_DISABLE_COPY_MOVE(QWindowsIntegration)
|
||||||
public:
|
public:
|
||||||
|
@ -56,8 +56,10 @@ class QAbstractEventDispatcher;
|
|||||||
class QXcbNativeInterface;
|
class QXcbNativeInterface;
|
||||||
|
|
||||||
class Q_XCB_EXPORT QXcbIntegration : public QPlatformIntegration
|
class Q_XCB_EXPORT QXcbIntegration : public QPlatformIntegration
|
||||||
|
#ifndef QT_NO_OPENGL
|
||||||
, public QPlatformInterface::Private::QGLXIntegration
|
, public QPlatformInterface::Private::QGLXIntegration
|
||||||
, public QPlatformInterface::Private::QEGLIntegration
|
, public QPlatformInterface::Private::QEGLIntegration
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
QXcbIntegration(const QStringList ¶meters, int &argc, char **argv);
|
QXcbIntegration(const QStringList ¶meters, int &argc, char **argv);
|
||||||
|
Loading…
Reference in New Issue
Block a user