diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-10-13 14:25:18 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-13 15:07:41 +0200 |
commit | 1582407fc782c0befd0760633324dd5c206524a1 (patch) | |
tree | e993d66e824da41ece006d44c48acd4df0ba749e /src/gui/egl | |
parent | 30cb91e17d2fbbdce90f7542f44e12af971ba2de (diff) |
Remove Q_WS_ and Q_OS_SYMBIAN from QtGui.
Change-Id: I2ac3376513c3fbfc81a2e695a73a0d948d2696bc
Reviewed-on: http://codereview.qt-project.org/6607
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/gui/egl')
-rw-r--r-- | src/gui/egl/qegl.cpp | 2 | ||||
-rw-r--r-- | src/gui/egl/qegl_p.h | 48 | ||||
-rw-r--r-- | src/gui/egl/qegl_stub.cpp | 2 | ||||
-rw-r--r-- | src/gui/egl/qeglproperties_p.h | 3 |
4 files changed, 0 insertions, 55 deletions
diff --git a/src/gui/egl/qegl.cpp b/src/gui/egl/qegl.cpp index 2f2f7724a4..4675533144 100644 --- a/src/gui/egl/qegl.cpp +++ b/src/gui/egl/qegl.cpp @@ -636,7 +636,6 @@ EGLBoolean QEgl::eglSwapBuffersRegion2NOK(EGLDisplay dpy, EGLSurface surface, EG return 0; } -#ifndef Q_WS_X11 EGLSurface QEgl::createSurface(QPaintDevice *device, EGLConfig cfg, const QEglProperties *properties) { // Create the native drawable for the paint device. @@ -674,7 +673,6 @@ EGLSurface QEgl::createSurface(QPaintDevice *device, EGLConfig cfg, const QEglPr } return surf; } -#endif // Return the error string associated with a specific code. diff --git a/src/gui/egl/qegl_p.h b/src/gui/egl/qegl_p.h index e0c02aa150..db8d8b7a38 100644 --- a/src/gui/egl/qegl_p.h +++ b/src/gui/egl/qegl_p.h @@ -87,25 +87,6 @@ typedef int EGLClientBuffer; #endif -#if defined(Q_WS_X11) -// If <EGL/egl.h> included <X11/Xlib.h>, then the global namespace -// may have been polluted with X #define's. The following makes sure -// the X11 headers were included properly and then cleans things up. -#include <X11/Xlib.h> -#include <X11/Xutil.h> -#undef Bool -#undef Status -#undef None -#undef KeyPress -#undef KeyRelease -#undef FocusIn -#undef FocusOut -#undef Type -#undef FontChange -#undef CursorShape -#undef Unsorted -#undef GrayScale -#endif // Internally we use the EGL-prefixed native types which are used in EGL >= 1.3. // For older versions of EGL, we have to define these types ourselves here: @@ -133,37 +114,11 @@ QT_BEGIN_NAMESPACE #endif // Try to get some info to debug the symbian build failues: -#ifdef Q_OS_SYMBIAN - -#ifdef EGL_KHR_image -#warning "EGL_KHR_image is defined" -#else -#warning "EGL_KHR_image is NOT defined" -#endif - -#ifdef EGL_KHR_image_base -#warning "EGL_KHR_image_base is defined" -#else -#warning "EGL_KHR_image_base is NOT defined" -#endif - -#ifdef EGL_EGLEXT_PROTOTYPES -#warning "EGL_EGLEXT_PROTOTYPES is defined" -#else -#warning "EGL_EGLEXT_PROTOTYPES NOT not defined" -#endif - -#endif // Declare/define the bits of EGL_KHR_image_base we need: #if !defined(EGL_KHR_image) && !defined(EGL_KHR_image_base) -#ifdef Q_OS_SYMBIAN -//symbian version of eglext.h differs from the khronos reference -typedef int EGLImageKHR; -#else typedef void *EGLImageKHR; -#endif #define EGL_NO_IMAGE_KHR ((EGLImageKHR)0) #define EGL_IMAGE_PRESERVED_KHR 0x30D2 @@ -230,9 +185,6 @@ namespace QEgl { Q_GUI_EXPORT EGLBoolean eglDestroyImageKHR(EGLDisplay dpy, EGLImageKHR img); Q_GUI_EXPORT EGLBoolean eglSwapBuffersRegion2NOK(EGLDisplay dpy, EGLSurface surface, EGLint count, const EGLint *rects); -#ifdef Q_WS_X11 - Q_GUI_EXPORT VisualID getCompatibleVisualId(EGLConfig config); -#endif } Q_DECLARE_OPERATORS_FOR_FLAGS(QEgl::ConfigOptions) diff --git a/src/gui/egl/qegl_stub.cpp b/src/gui/egl/qegl_stub.cpp index 3e9ccd3861..b86f4dc2c0 100644 --- a/src/gui/egl/qegl_stub.cpp +++ b/src/gui/egl/qegl_stub.cpp @@ -226,7 +226,6 @@ EGLBoolean QEgl::eglSwapBuffersRegion2NOK(EGLDisplay dpy, EGLSurface surface, EG return 0; } -#ifndef Q_WS_X11 EGLSurface QEgl::createSurface(QPaintDevice *device, EGLConfig cfg, const QEglProperties *properties) { Q_UNUSED(device) @@ -235,7 +234,6 @@ EGLSurface QEgl::createSurface(QPaintDevice *device, EGLConfig cfg, const QEglPr NOEGL return 0; } -#endif // Return the error string associated with a specific code. diff --git a/src/gui/egl/qeglproperties_p.h b/src/gui/egl/qeglproperties_p.h index d8d64e01a1..23f3000923 100644 --- a/src/gui/egl/qeglproperties_p.h +++ b/src/gui/egl/qeglproperties_p.h @@ -79,9 +79,6 @@ public: const int *properties() const { return props.constData(); } void setPixelFormat(QImage::Format pixelFormat); -#ifdef Q_WS_X11 - void setVisualFormat(const QX11Info *xinfo); -#endif void setDeviceType(int devType); void setPaintDeviceFormat(QPaintDevice *dev); void setRenderableType(QEgl::API api); |