diff options
Diffstat (limited to 'src/plugins/platforms/xcb')
3 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglcontext.h b/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglcontext.h index fda53f17a1..af394d12ed 100644 --- a/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglcontext.h +++ b/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglcontext.h @@ -56,7 +56,7 @@ public: { } - void swapBuffers(QPlatformSurface *surface) + void swapBuffers(QPlatformSurface *surface) override { QEGLPlatformContext::swapBuffers(surface); if (surface->surface()->surfaceClass() == QSurface::Window) { @@ -69,17 +69,17 @@ public: } } - bool makeCurrent(QPlatformSurface *surface) + bool makeCurrent(QPlatformSurface *surface) override { return QEGLPlatformContext::makeCurrent(surface); } - void doneCurrent() + void doneCurrent() override { QEGLPlatformContext::doneCurrent(); } - EGLSurface eglSurfaceForPlatformSurface(QPlatformSurface *surface) + EGLSurface eglSurfaceForPlatformSurface(QPlatformSurface *surface) override { if (surface->surface()->surfaceClass() == QSurface::Window) return static_cast<QXcbEglWindow *>(surface)->eglSurface(); diff --git a/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglmain.cpp b/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglmain.cpp index 2de6d800e4..8979c0371b 100644 --- a/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglmain.cpp +++ b/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglmain.cpp @@ -48,7 +48,7 @@ class QXcbEglIntegrationPlugin : public QXcbGlIntegrationPlugin Q_OBJECT Q_PLUGIN_METADATA(IID QXcbGlIntegrationFactoryInterface_iid FILE "xcb_egl.json") public: - QXcbGlIntegration *create() + QXcbGlIntegration *create() override { return new QXcbEglIntegration(); } diff --git a/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qxcbglxmain.cpp b/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qxcbglxmain.cpp index 1883d1bc52..898ee3dcf8 100644 --- a/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qxcbglxmain.cpp +++ b/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qxcbglxmain.cpp @@ -48,7 +48,7 @@ class QXcbGlxIntegrationPlugin : public QXcbGlIntegrationPlugin Q_OBJECT Q_PLUGIN_METADATA(IID QXcbGlIntegrationFactoryInterface_iid FILE "xcb_glx.json") public: - QXcbGlIntegration *create() + QXcbGlIntegration *create() override { return new QXcbGlxIntegration(); } |