eglfs: Replace Q_DECL_OVERRIDE by override
We can use 'override' directly since Qt 5.7. Also remove redundant 'virtual'. Change-Id: I4c1d5d8a69bf51a7f31077f7cdc74ba06da0bc11 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
parent
b5c273cb1a
commit
964d9e8f8a
@ -62,11 +62,11 @@ class Q_EGLFS_EXPORT QEglFSContext : public QEGLPlatformContext
|
||||
public:
|
||||
QEglFSContext(const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display,
|
||||
EGLConfig *config, const QVariant &nativeHandle);
|
||||
EGLSurface eglSurfaceForPlatformSurface(QPlatformSurface *surface) Q_DECL_OVERRIDE;
|
||||
EGLSurface createTemporaryOffscreenSurface() Q_DECL_OVERRIDE;
|
||||
void destroyTemporaryOffscreenSurface(EGLSurface surface) Q_DECL_OVERRIDE;
|
||||
void runGLChecks() Q_DECL_OVERRIDE;
|
||||
void swapBuffers(QPlatformSurface *surface) Q_DECL_OVERRIDE;
|
||||
EGLSurface eglSurfaceForPlatformSurface(QPlatformSurface *surface) override;
|
||||
EGLSurface createTemporaryOffscreenSurface() override;
|
||||
void destroyTemporaryOffscreenSurface(EGLSurface surface) override;
|
||||
void runGLChecks() override;
|
||||
void swapBuffers(QPlatformSurface *surface) override;
|
||||
|
||||
private:
|
||||
EGLNativeWindowType m_tempWindow;
|
||||
|
@ -87,11 +87,11 @@ public:
|
||||
~QEglFSCursor();
|
||||
|
||||
#ifndef QT_NO_CURSOR
|
||||
void changeCursor(QCursor *cursor, QWindow *widget) Q_DECL_OVERRIDE;
|
||||
void changeCursor(QCursor *cursor, QWindow *widget) override;
|
||||
#endif
|
||||
void pointerEvent(const QMouseEvent &event) Q_DECL_OVERRIDE;
|
||||
QPoint pos() const Q_DECL_OVERRIDE;
|
||||
void setPos(const QPoint &pos) Q_DECL_OVERRIDE;
|
||||
void pointerEvent(const QMouseEvent &event) override;
|
||||
QPoint pos() const override;
|
||||
void setPos(const QPoint &pos) override;
|
||||
|
||||
QRect cursorRect() const;
|
||||
void paintOnScreen();
|
||||
@ -100,7 +100,7 @@ public:
|
||||
void updateMouseStatus();
|
||||
|
||||
private:
|
||||
bool event(QEvent *e) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent *e) override;
|
||||
#ifndef QT_NO_CURSOR
|
||||
bool setCurrentCursor(QCursor *cursor);
|
||||
#endif
|
||||
|
@ -362,7 +362,7 @@ EGLConfig QEglFSDeviceIntegration::chooseConfig(EGLDisplay display, const QSurfa
|
||||
public:
|
||||
Chooser(EGLDisplay display)
|
||||
: QEglConfigChooser(display) { }
|
||||
bool filterConfig(EGLConfig config) const Q_DECL_OVERRIDE {
|
||||
bool filterConfig(EGLConfig config) const override {
|
||||
return qt_egl_device_integration()->filterConfig(display(), config)
|
||||
&& QEglConfigChooser::filterConfig(config);
|
||||
}
|
||||
|
@ -69,37 +69,37 @@ class Q_EGLFS_EXPORT QEglFSIntegration : public QPlatformIntegration, public QPl
|
||||
public:
|
||||
QEglFSIntegration();
|
||||
|
||||
void initialize() Q_DECL_OVERRIDE;
|
||||
void destroy() Q_DECL_OVERRIDE;
|
||||
void initialize() override;
|
||||
void destroy() override;
|
||||
|
||||
EGLDisplay display() const { return m_display; }
|
||||
|
||||
QAbstractEventDispatcher *createEventDispatcher() const Q_DECL_OVERRIDE;
|
||||
QPlatformFontDatabase *fontDatabase() const Q_DECL_OVERRIDE;
|
||||
QPlatformServices *services() const Q_DECL_OVERRIDE;
|
||||
QPlatformInputContext *inputContext() const Q_DECL_OVERRIDE { return m_inputContext; }
|
||||
QPlatformTheme *createPlatformTheme(const QString &name) const Q_DECL_OVERRIDE;
|
||||
QAbstractEventDispatcher *createEventDispatcher() const override;
|
||||
QPlatformFontDatabase *fontDatabase() const override;
|
||||
QPlatformServices *services() const override;
|
||||
QPlatformInputContext *inputContext() const override { return m_inputContext; }
|
||||
QPlatformTheme *createPlatformTheme(const QString &name) const override;
|
||||
|
||||
QPlatformWindow *createPlatformWindow(QWindow *window) const Q_DECL_OVERRIDE;
|
||||
QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const Q_DECL_OVERRIDE;
|
||||
QPlatformWindow *createPlatformWindow(QWindow *window) const override;
|
||||
QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const override;
|
||||
#ifndef QT_NO_OPENGL
|
||||
QPlatformOpenGLContext *createPlatformOpenGLContext(QOpenGLContext *context) const Q_DECL_OVERRIDE;
|
||||
QPlatformOffscreenSurface *createPlatformOffscreenSurface(QOffscreenSurface *surface) const Q_DECL_OVERRIDE;
|
||||
QPlatformOpenGLContext *createPlatformOpenGLContext(QOpenGLContext *context) const override;
|
||||
QPlatformOffscreenSurface *createPlatformOffscreenSurface(QOffscreenSurface *surface) const override;
|
||||
#endif
|
||||
bool hasCapability(QPlatformIntegration::Capability cap) const Q_DECL_OVERRIDE;
|
||||
bool hasCapability(QPlatformIntegration::Capability cap) const override;
|
||||
|
||||
QPlatformNativeInterface *nativeInterface() const Q_DECL_OVERRIDE;
|
||||
QPlatformNativeInterface *nativeInterface() const override;
|
||||
|
||||
// QPlatformNativeInterface
|
||||
void *nativeResourceForIntegration(const QByteArray &resource) Q_DECL_OVERRIDE;
|
||||
void *nativeResourceForScreen(const QByteArray &resource, QScreen *screen) Q_DECL_OVERRIDE;
|
||||
void *nativeResourceForWindow(const QByteArray &resource, QWindow *window) Q_DECL_OVERRIDE;
|
||||
void *nativeResourceForIntegration(const QByteArray &resource) override;
|
||||
void *nativeResourceForScreen(const QByteArray &resource, QScreen *screen) override;
|
||||
void *nativeResourceForWindow(const QByteArray &resource, QWindow *window) override;
|
||||
#ifndef QT_NO_OPENGL
|
||||
void *nativeResourceForContext(const QByteArray &resource, QOpenGLContext *context) Q_DECL_OVERRIDE;
|
||||
void *nativeResourceForContext(const QByteArray &resource, QOpenGLContext *context) override;
|
||||
#endif
|
||||
NativeResourceForContextFunction nativeResourceFunctionForContext(const QByteArray &resource) Q_DECL_OVERRIDE;
|
||||
NativeResourceForContextFunction nativeResourceFunctionForContext(const QByteArray &resource) override;
|
||||
|
||||
QFunctionPointer platformFunction(const QByteArray &function) const Q_DECL_OVERRIDE;
|
||||
QFunctionPointer platformFunction(const QByteArray &function) const override;
|
||||
|
||||
QFbVtHandler *vtHandler() { return m_vtHandler.data(); }
|
||||
|
||||
|
@ -62,8 +62,8 @@ public:
|
||||
QEglFSOffscreenWindow(EGLDisplay display, const QSurfaceFormat &format, QOffscreenSurface *offscreenSurface);
|
||||
~QEglFSOffscreenWindow();
|
||||
|
||||
QSurfaceFormat format() const Q_DECL_OVERRIDE { return m_format; }
|
||||
bool isValid() const Q_DECL_OVERRIDE { return m_surface != EGL_NO_SURFACE; }
|
||||
QSurfaceFormat format() const override { return m_format; }
|
||||
bool isValid() const override { return m_surface != EGL_NO_SURFACE; }
|
||||
|
||||
private:
|
||||
QSurfaceFormat m_format;
|
||||
|
@ -67,22 +67,22 @@ public:
|
||||
QEglFSScreen(EGLDisplay display);
|
||||
~QEglFSScreen();
|
||||
|
||||
QRect geometry() const Q_DECL_OVERRIDE;
|
||||
QRect geometry() const override;
|
||||
virtual QRect rawGeometry() const;
|
||||
int depth() const Q_DECL_OVERRIDE;
|
||||
QImage::Format format() const Q_DECL_OVERRIDE;
|
||||
int depth() const override;
|
||||
QImage::Format format() const override;
|
||||
|
||||
QSizeF physicalSize() const Q_DECL_OVERRIDE;
|
||||
QDpi logicalDpi() const Q_DECL_OVERRIDE;
|
||||
qreal pixelDensity() const Q_DECL_OVERRIDE;
|
||||
Qt::ScreenOrientation nativeOrientation() const Q_DECL_OVERRIDE;
|
||||
Qt::ScreenOrientation orientation() const Q_DECL_OVERRIDE;
|
||||
QSizeF physicalSize() const override;
|
||||
QDpi logicalDpi() const override;
|
||||
qreal pixelDensity() const override;
|
||||
Qt::ScreenOrientation nativeOrientation() const override;
|
||||
Qt::ScreenOrientation orientation() const override;
|
||||
|
||||
QPlatformCursor *cursor() const Q_DECL_OVERRIDE;
|
||||
QPlatformCursor *cursor() const override;
|
||||
|
||||
qreal refreshRate() const Q_DECL_OVERRIDE;
|
||||
qreal refreshRate() const override;
|
||||
|
||||
QPixmap grabWindow(WId wid, int x, int y, int width, int height) const Q_DECL_OVERRIDE;
|
||||
QPixmap grabWindow(WId wid, int x, int y, int width, int height) const override;
|
||||
|
||||
EGLSurface primarySurface() const { return m_surface; }
|
||||
|
||||
|
@ -77,21 +77,21 @@ public:
|
||||
void create();
|
||||
void destroy();
|
||||
|
||||
void setGeometry(const QRect &) Q_DECL_OVERRIDE;
|
||||
QRect geometry() const Q_DECL_OVERRIDE;
|
||||
void setVisible(bool visible) Q_DECL_OVERRIDE;
|
||||
void requestActivateWindow() Q_DECL_OVERRIDE;
|
||||
void raise() Q_DECL_OVERRIDE;
|
||||
void lower() Q_DECL_OVERRIDE;
|
||||
void setGeometry(const QRect &) override;
|
||||
QRect geometry() const override;
|
||||
void setVisible(bool visible) override;
|
||||
void requestActivateWindow() override;
|
||||
void raise() override;
|
||||
void lower() override;
|
||||
|
||||
void propagateSizeHints() Q_DECL_OVERRIDE { }
|
||||
void setMask(const QRegion &) Q_DECL_OVERRIDE { }
|
||||
bool setKeyboardGrabEnabled(bool) Q_DECL_OVERRIDE { return false; }
|
||||
bool setMouseGrabEnabled(bool) Q_DECL_OVERRIDE { return false; }
|
||||
void setOpacity(qreal) Q_DECL_OVERRIDE;
|
||||
WId winId() const Q_DECL_OVERRIDE;
|
||||
void propagateSizeHints() override { }
|
||||
void setMask(const QRegion &) override { }
|
||||
bool setKeyboardGrabEnabled(bool) override { return false; }
|
||||
bool setMouseGrabEnabled(bool) override { return false; }
|
||||
void setOpacity(qreal) override;
|
||||
WId winId() const override;
|
||||
|
||||
QSurfaceFormat format() const Q_DECL_OVERRIDE;
|
||||
QSurfaceFormat format() const override;
|
||||
|
||||
EGLNativeWindowType eglWindow() const;
|
||||
EGLSurface surface() const;
|
||||
@ -99,7 +99,7 @@ public:
|
||||
|
||||
bool hasNativeWindow() const { return m_flags.testFlag(HasNativeWindow); }
|
||||
|
||||
virtual void invalidateSurface() Q_DECL_OVERRIDE;
|
||||
void invalidateSurface() override;
|
||||
virtual void resetSurface();
|
||||
|
||||
#ifndef QT_NO_OPENGL
|
||||
@ -108,9 +108,9 @@ public:
|
||||
#endif
|
||||
bool isRaster() const;
|
||||
#ifndef QT_NO_OPENGL
|
||||
QWindow *sourceWindow() const Q_DECL_OVERRIDE;
|
||||
const QPlatformTextureList *textures() const Q_DECL_OVERRIDE;
|
||||
void endCompositing() Q_DECL_OVERRIDE;
|
||||
QWindow *sourceWindow() const override;
|
||||
const QPlatformTextureList *textures() const override;
|
||||
void endCompositing() override;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
|
@ -47,13 +47,13 @@ QT_BEGIN_NAMESPACE
|
||||
class QEglFSBrcmIntegration : public QEglFSDeviceIntegration
|
||||
{
|
||||
public:
|
||||
void platformInit() Q_DECL_OVERRIDE;
|
||||
void platformDestroy() Q_DECL_OVERRIDE;
|
||||
EGLNativeDisplayType platformDisplay() const Q_DECL_OVERRIDE;
|
||||
QSize screenSize() const Q_DECL_OVERRIDE;
|
||||
EGLNativeWindowType createNativeWindow(QPlatformWindow *window, const QSize &size, const QSurfaceFormat &format) Q_DECL_OVERRIDE;
|
||||
void destroyNativeWindow(EGLNativeWindowType window) Q_DECL_OVERRIDE;
|
||||
bool hasCapability(QPlatformIntegration::Capability cap) const Q_DECL_OVERRIDE;
|
||||
void platformInit() override;
|
||||
void platformDestroy() override;
|
||||
EGLNativeDisplayType platformDisplay() const override;
|
||||
QSize screenSize() const override;
|
||||
EGLNativeWindowType createNativeWindow(QPlatformWindow *window, const QSize &size, const QSurfaceFormat &format) override;
|
||||
void destroyNativeWindow(EGLNativeWindowType window) override;
|
||||
bool hasCapability(QPlatformIntegration::Capability cap) const override;
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
@ -48,7 +48,7 @@ class QEglFSBrcmIntegrationPlugin : public QEglFSDeviceIntegrationPlugin
|
||||
Q_PLUGIN_METADATA(IID QEglFSDeviceIntegrationFactoryInterface_iid FILE "eglfs_brcm.json")
|
||||
|
||||
public:
|
||||
QEglFSDeviceIntegration *create() Q_DECL_OVERRIDE { return new QEglFSBrcmIntegration; }
|
||||
QEglFSDeviceIntegration *create() override { return new QEglFSBrcmIntegration; }
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
@ -48,7 +48,7 @@ class QEglFSEmulatorIntegrationPlugin : public QEglFSDeviceIntegrationPlugin
|
||||
Q_PLUGIN_METADATA(IID QEglFSDeviceIntegrationFactoryInterface_iid FILE "eglfs_emu.json")
|
||||
|
||||
public:
|
||||
QEglFSDeviceIntegration *create() Q_DECL_OVERRIDE { return new QEglFSEmulatorIntegration; }
|
||||
QEglFSDeviceIntegration *create() override { return new QEglFSEmulatorIntegration; }
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
@ -76,12 +76,12 @@ public:
|
||||
~QEglFSKmsGbmCursor();
|
||||
|
||||
// input methods
|
||||
void pointerEvent(const QMouseEvent & event) Q_DECL_OVERRIDE;
|
||||
void pointerEvent(const QMouseEvent & event) override;
|
||||
#ifndef QT_NO_CURSOR
|
||||
void changeCursor(QCursor * windowCursor, QWindow * window) Q_DECL_OVERRIDE;
|
||||
void changeCursor(QCursor * windowCursor, QWindow * window) override;
|
||||
#endif
|
||||
QPoint pos() const Q_DECL_OVERRIDE;
|
||||
void setPos(const QPoint &pos) Q_DECL_OVERRIDE;
|
||||
QPoint pos() const override;
|
||||
void setPos(const QPoint &pos) override;
|
||||
|
||||
void updateMouseStatus();
|
||||
|
||||
|
@ -56,10 +56,10 @@ class QEglFSKmsGbmDevice: public QEglFSKmsDevice
|
||||
public:
|
||||
QEglFSKmsGbmDevice(QKmsScreenConfig *screenConfig, const QString &path);
|
||||
|
||||
bool open() Q_DECL_OVERRIDE;
|
||||
void close() Q_DECL_OVERRIDE;
|
||||
bool open() override;
|
||||
void close() override;
|
||||
|
||||
void *nativeDisplay() const Q_DECL_OVERRIDE;
|
||||
void *nativeDisplay() const override;
|
||||
gbm_device *gbmDevice() const;
|
||||
|
||||
QPlatformCursor *globalCursor() const;
|
||||
@ -67,7 +67,7 @@ public:
|
||||
|
||||
void handleDrmEvent();
|
||||
|
||||
QPlatformScreen *createScreen(const QKmsOutput &output) Q_DECL_OVERRIDE;
|
||||
QPlatformScreen *createScreen(const QKmsOutput &output) override;
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(QEglFSKmsGbmDevice)
|
||||
|
@ -57,15 +57,15 @@ public:
|
||||
|
||||
EGLNativeWindowType createNativeWindow(QPlatformWindow *platformWindow,
|
||||
const QSize &size,
|
||||
const QSurfaceFormat &format) Q_DECL_OVERRIDE;
|
||||
EGLNativeWindowType createNativeOffscreenWindow(const QSurfaceFormat &format) Q_DECL_OVERRIDE;
|
||||
void destroyNativeWindow(EGLNativeWindowType window) Q_DECL_OVERRIDE;
|
||||
const QSurfaceFormat &format) override;
|
||||
EGLNativeWindowType createNativeOffscreenWindow(const QSurfaceFormat &format) override;
|
||||
void destroyNativeWindow(EGLNativeWindowType window) override;
|
||||
|
||||
QPlatformCursor *createCursor(QPlatformScreen *screen) const Q_DECL_OVERRIDE;
|
||||
void presentBuffer(QPlatformSurface *surface) Q_DECL_OVERRIDE;
|
||||
QPlatformCursor *createCursor(QPlatformScreen *screen) const override;
|
||||
void presentBuffer(QPlatformSurface *surface) override;
|
||||
|
||||
protected:
|
||||
QKmsDevice *createDevice() Q_DECL_OVERRIDE;
|
||||
QKmsDevice *createDevice() override;
|
||||
|
||||
private:
|
||||
};
|
||||
|
@ -49,7 +49,7 @@ class QEglFSKmsGbmIntegrationPlugin : public QEglFSDeviceIntegrationPlugin
|
||||
Q_PLUGIN_METADATA(IID QEglFSDeviceIntegrationFactoryInterface_iid FILE "eglfs_kms.json")
|
||||
|
||||
public:
|
||||
QEglFSDeviceIntegration *create() Q_DECL_OVERRIDE { return new QEglFSKmsGbmIntegration; }
|
||||
QEglFSDeviceIntegration *create() override { return new QEglFSKmsGbmIntegration; }
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
@ -57,15 +57,15 @@ public:
|
||||
QEglFSKmsGbmScreen(QKmsDevice *device, const QKmsOutput &output);
|
||||
~QEglFSKmsGbmScreen();
|
||||
|
||||
QPlatformCursor *cursor() const Q_DECL_OVERRIDE;
|
||||
QPlatformCursor *cursor() const override;
|
||||
|
||||
gbm_surface *surface() const { return m_gbm_surface; }
|
||||
gbm_surface *createSurface();
|
||||
void destroySurface();
|
||||
|
||||
void waitForFlip() Q_DECL_OVERRIDE;
|
||||
void flip() Q_DECL_OVERRIDE;
|
||||
void flipFinished() Q_DECL_OVERRIDE;
|
||||
void waitForFlip() override;
|
||||
void flip() override;
|
||||
void flipFinished() override;
|
||||
|
||||
private:
|
||||
gbm_surface *m_gbm_surface;
|
||||
|
@ -52,12 +52,12 @@ class QEglFSKmsEglDevice: public QEglFSKmsDevice
|
||||
public:
|
||||
QEglFSKmsEglDevice(QEglFSKmsEglDeviceIntegration *devInt, QKmsScreenConfig *screenConfig, const QString &path);
|
||||
|
||||
bool open() Q_DECL_OVERRIDE;
|
||||
void close() Q_DECL_OVERRIDE;
|
||||
bool open() override;
|
||||
void close() override;
|
||||
|
||||
void *nativeDisplay() const Q_DECL_OVERRIDE;
|
||||
void *nativeDisplay() const override;
|
||||
|
||||
QPlatformScreen *createScreen(const QKmsOutput &output) Q_DECL_OVERRIDE;
|
||||
QPlatformScreen *createScreen(const QKmsOutput &output) override;
|
||||
|
||||
QPlatformCursor *globalCursor() { return m_globalCursor; }
|
||||
void destroyGlobalCursor();
|
||||
|
@ -109,8 +109,8 @@ public:
|
||||
, m_egl_stream(EGL_NO_STREAM_KHR)
|
||||
{ }
|
||||
|
||||
void invalidateSurface() Q_DECL_OVERRIDE;
|
||||
void resetSurface() Q_DECL_OVERRIDE;
|
||||
void invalidateSurface() override;
|
||||
void resetSurface() override;
|
||||
|
||||
const QEglFSKmsEglDeviceIntegration *m_integration;
|
||||
EGLStreamKHR m_egl_stream;
|
||||
|
@ -55,17 +55,17 @@ class QEglFSKmsEglDeviceIntegration : public QEglFSKmsIntegration
|
||||
public:
|
||||
QEglFSKmsEglDeviceIntegration();
|
||||
|
||||
EGLint surfaceType() const Q_DECL_OVERRIDE;
|
||||
EGLDisplay createDisplay(EGLNativeDisplayType nativeDisplay) Q_DECL_OVERRIDE;
|
||||
bool supportsSurfacelessContexts() const Q_DECL_OVERRIDE;
|
||||
bool supportsPBuffers() const Q_DECL_OVERRIDE;
|
||||
QEglFSWindow *createWindow(QWindow *window) const Q_DECL_OVERRIDE;
|
||||
EGLint surfaceType() const override;
|
||||
EGLDisplay createDisplay(EGLNativeDisplayType nativeDisplay) override;
|
||||
bool supportsSurfacelessContexts() const override;
|
||||
bool supportsPBuffers() const override;
|
||||
QEglFSWindow *createWindow(QWindow *window) const override;
|
||||
|
||||
EGLDeviceEXT eglDevice() const { return m_egl_device; }
|
||||
|
||||
protected:
|
||||
QKmsDevice *createDevice() Q_DECL_OVERRIDE;
|
||||
QPlatformCursor *createCursor(QPlatformScreen *screen) const Q_DECL_OVERRIDE;
|
||||
QKmsDevice *createDevice() override;
|
||||
QPlatformCursor *createCursor(QPlatformScreen *screen) const override;
|
||||
|
||||
private:
|
||||
bool setup_kms();
|
||||
|
@ -47,7 +47,7 @@ class QEglFSKmsEglDeviceIntegrationPlugin : public QEglFSDeviceIntegrationPlugin
|
||||
Q_PLUGIN_METADATA(IID QEglFSDeviceIntegrationFactoryInterface_iid FILE "eglfs_kms_egldevice.json")
|
||||
|
||||
public:
|
||||
QEglFSDeviceIntegration *create() Q_DECL_OVERRIDE { return new QEglFSKmsEglDeviceIntegration; }
|
||||
QEglFSDeviceIntegration *create() override { return new QEglFSKmsEglDeviceIntegration; }
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
@ -50,9 +50,9 @@ public:
|
||||
QEglFSKmsEglDeviceScreen(QKmsDevice *device, const QKmsOutput &output);
|
||||
~QEglFSKmsEglDeviceScreen();
|
||||
|
||||
QPlatformCursor *cursor() const Q_DECL_OVERRIDE;
|
||||
QPlatformCursor *cursor() const override;
|
||||
|
||||
void waitForFlip() Q_DECL_OVERRIDE;
|
||||
void waitForFlip() override;
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
@ -60,15 +60,15 @@ public:
|
||||
QEglFSKmsIntegration();
|
||||
~QEglFSKmsIntegration();
|
||||
|
||||
void platformInit() Q_DECL_OVERRIDE;
|
||||
void platformDestroy() Q_DECL_OVERRIDE;
|
||||
EGLNativeDisplayType platformDisplay() const Q_DECL_OVERRIDE;
|
||||
bool usesDefaultScreen() Q_DECL_OVERRIDE;
|
||||
void screenInit() Q_DECL_OVERRIDE;
|
||||
QSurfaceFormat surfaceFormatFor(const QSurfaceFormat &inputFormat) const Q_DECL_OVERRIDE;
|
||||
bool hasCapability(QPlatformIntegration::Capability cap) const Q_DECL_OVERRIDE;
|
||||
void waitForVSync(QPlatformSurface *surface) const Q_DECL_OVERRIDE;
|
||||
bool supportsPBuffers() const Q_DECL_OVERRIDE;
|
||||
void platformInit() override;
|
||||
void platformDestroy() override;
|
||||
EGLNativeDisplayType platformDisplay() const override;
|
||||
bool usesDefaultScreen() override;
|
||||
void screenInit() override;
|
||||
QSurfaceFormat surfaceFormatFor(const QSurfaceFormat &inputFormat) const override;
|
||||
bool hasCapability(QPlatformIntegration::Capability cap) const override;
|
||||
void waitForVSync(QPlatformSurface *surface) const override;
|
||||
bool supportsPBuffers() const override;
|
||||
|
||||
QKmsDevice *device() const;
|
||||
QKmsScreenConfig *screenConfig() const;
|
||||
|
@ -60,21 +60,21 @@ public:
|
||||
|
||||
void setVirtualPosition(const QPoint &pos);
|
||||
|
||||
QRect rawGeometry() const Q_DECL_OVERRIDE;
|
||||
QRect rawGeometry() const override;
|
||||
|
||||
int depth() const Q_DECL_OVERRIDE;
|
||||
QImage::Format format() const Q_DECL_OVERRIDE;
|
||||
int depth() const override;
|
||||
QImage::Format format() const override;
|
||||
|
||||
QSizeF physicalSize() const Q_DECL_OVERRIDE;
|
||||
QDpi logicalDpi() const Q_DECL_OVERRIDE;
|
||||
Qt::ScreenOrientation nativeOrientation() const Q_DECL_OVERRIDE;
|
||||
Qt::ScreenOrientation orientation() const Q_DECL_OVERRIDE;
|
||||
QSizeF physicalSize() const override;
|
||||
QDpi logicalDpi() const override;
|
||||
Qt::ScreenOrientation nativeOrientation() const override;
|
||||
Qt::ScreenOrientation orientation() const override;
|
||||
|
||||
QString name() const Q_DECL_OVERRIDE;
|
||||
QString name() const override;
|
||||
|
||||
qreal refreshRate() const Q_DECL_OVERRIDE;
|
||||
qreal refreshRate() const override;
|
||||
|
||||
QList<QPlatformScreen *> virtualSiblings() const Q_DECL_OVERRIDE { return m_siblings; }
|
||||
QList<QPlatformScreen *> virtualSiblings() const override { return m_siblings; }
|
||||
void setVirtualSiblings(QList<QPlatformScreen *> sl) { m_siblings = sl; }
|
||||
|
||||
QKmsDevice *device() const { return m_device; }
|
||||
@ -88,10 +88,10 @@ public:
|
||||
QKmsOutput &output() { return m_output; }
|
||||
void restoreMode();
|
||||
|
||||
SubpixelAntialiasingType subpixelAntialiasingTypeHint() const Q_DECL_OVERRIDE;
|
||||
SubpixelAntialiasingType subpixelAntialiasingTypeHint() const override;
|
||||
|
||||
QPlatformScreen::PowerState powerState() const Q_DECL_OVERRIDE;
|
||||
void setPowerState(QPlatformScreen::PowerState state) Q_DECL_OVERRIDE;
|
||||
QPlatformScreen::PowerState powerState() const override;
|
||||
void setPowerState(QPlatformScreen::PowerState state) override;
|
||||
|
||||
protected:
|
||||
QKmsDevice *m_device;
|
||||
|
@ -47,9 +47,9 @@ QT_BEGIN_NAMESPACE
|
||||
class QEglFSMaliIntegration : public QEglFSDeviceIntegration
|
||||
{
|
||||
public:
|
||||
void platformInit() Q_DECL_OVERRIDE;
|
||||
EGLNativeWindowType createNativeWindow(QPlatformWindow *window, const QSize &size, const QSurfaceFormat &format) Q_DECL_OVERRIDE;
|
||||
void destroyNativeWindow(EGLNativeWindowType window) Q_DECL_OVERRIDE;
|
||||
void platformInit() override;
|
||||
EGLNativeWindowType createNativeWindow(QPlatformWindow *window, const QSize &size, const QSurfaceFormat &format) override;
|
||||
void destroyNativeWindow(EGLNativeWindowType window) override;
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
@ -48,7 +48,7 @@ class QEglFSMaliIntegrationPlugin : public QEglFSDeviceIntegrationPlugin
|
||||
Q_PLUGIN_METADATA(IID QEglFSDeviceIntegrationFactoryInterface_iid FILE "eglfs_mali.json")
|
||||
|
||||
public:
|
||||
QEglFSDeviceIntegration *create() Q_DECL_OVERRIDE { return new QEglFSMaliIntegration; }
|
||||
QEglFSDeviceIntegration *create() override { return new QEglFSMaliIntegration; }
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
@ -47,11 +47,11 @@ QT_BEGIN_NAMESPACE
|
||||
class QEglFSVivIntegration : public QEglFSDeviceIntegration
|
||||
{
|
||||
public:
|
||||
void platformInit() Q_DECL_OVERRIDE;
|
||||
QSize screenSize() const Q_DECL_OVERRIDE;
|
||||
EGLNativeWindowType createNativeWindow(QPlatformWindow *window, const QSize &size, const QSurfaceFormat &format) Q_DECL_OVERRIDE;
|
||||
void destroyNativeWindow(EGLNativeWindowType window) Q_DECL_OVERRIDE;
|
||||
EGLNativeDisplayType platformDisplay() const Q_DECL_OVERRIDE;
|
||||
void platformInit() override;
|
||||
QSize screenSize() const override;
|
||||
EGLNativeWindowType createNativeWindow(QPlatformWindow *window, const QSize &size, const QSurfaceFormat &format) override;
|
||||
void destroyNativeWindow(EGLNativeWindowType window) override;
|
||||
EGLNativeDisplayType platformDisplay() const override;
|
||||
|
||||
private:
|
||||
QSize mScreenSize;
|
||||
|
@ -48,7 +48,7 @@ class QEglFSVivIntegrationPlugin : public QEglFSDeviceIntegrationPlugin
|
||||
Q_PLUGIN_METADATA(IID QEglFSDeviceIntegrationFactoryInterface_iid FILE "eglfs_viv.json")
|
||||
|
||||
public:
|
||||
QEglFSDeviceIntegration *create() Q_DECL_OVERRIDE { return new QEglFSVivIntegration; }
|
||||
QEglFSDeviceIntegration *create() override { return new QEglFSVivIntegration; }
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
@ -48,13 +48,13 @@ QT_BEGIN_NAMESPACE
|
||||
class QEglFSVivWaylandIntegration : public QEglFSDeviceIntegration
|
||||
{
|
||||
public:
|
||||
void platformInit() Q_DECL_OVERRIDE;
|
||||
QSize screenSize() const Q_DECL_OVERRIDE;
|
||||
EGLNativeWindowType createNativeWindow(QPlatformWindow *window, const QSize &size, const QSurfaceFormat &format) Q_DECL_OVERRIDE;
|
||||
void destroyNativeWindow(EGLNativeWindowType window) Q_DECL_OVERRIDE;
|
||||
EGLNativeDisplayType platformDisplay() const Q_DECL_OVERRIDE;
|
||||
void platformInit() override;
|
||||
QSize screenSize() const override;
|
||||
EGLNativeWindowType createNativeWindow(QPlatformWindow *window, const QSize &size, const QSurfaceFormat &format) override;
|
||||
void destroyNativeWindow(EGLNativeWindowType window) override;
|
||||
EGLNativeDisplayType platformDisplay() const override;
|
||||
|
||||
void *wlDisplay() const Q_DECL_OVERRIDE;
|
||||
void *wlDisplay() const override;
|
||||
private:
|
||||
QSize mScreenSize;
|
||||
EGLNativeDisplayType mNativeDisplay;
|
||||
|
@ -48,7 +48,7 @@ class QEglFSVivWaylandIntegrationPlugin : public QEglFSDeviceIntegrationPlugin
|
||||
Q_PLUGIN_METADATA(IID QEglFSDeviceIntegrationFactoryInterface_iid FILE "eglfs_viv_wl.json")
|
||||
|
||||
public:
|
||||
QEglFSDeviceIntegration *create() Q_DECL_OVERRIDE { return new QEglFSVivWaylandIntegration; }
|
||||
QEglFSDeviceIntegration *create() override { return new QEglFSVivWaylandIntegration; }
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
@ -69,15 +69,15 @@ class QEglFSX11Integration : public QEglFSDeviceIntegration
|
||||
public:
|
||||
QEglFSX11Integration() : m_connection(0), m_window(0), m_eventReader(0) {}
|
||||
|
||||
void platformInit() Q_DECL_OVERRIDE;
|
||||
void platformDestroy() Q_DECL_OVERRIDE;
|
||||
EGLNativeDisplayType platformDisplay() const Q_DECL_OVERRIDE;
|
||||
QSize screenSize() const Q_DECL_OVERRIDE;
|
||||
void platformInit() override;
|
||||
void platformDestroy() override;
|
||||
EGLNativeDisplayType platformDisplay() const override;
|
||||
QSize screenSize() const override;
|
||||
EGLNativeWindowType createNativeWindow(QPlatformWindow *window,
|
||||
const QSize &size,
|
||||
const QSurfaceFormat &format) Q_DECL_OVERRIDE;
|
||||
void destroyNativeWindow(EGLNativeWindowType window) Q_DECL_OVERRIDE;
|
||||
bool hasCapability(QPlatformIntegration::Capability cap) const Q_DECL_OVERRIDE;
|
||||
const QSurfaceFormat &format) override;
|
||||
void destroyNativeWindow(EGLNativeWindowType window) override;
|
||||
bool hasCapability(QPlatformIntegration::Capability cap) const override;
|
||||
|
||||
xcb_connection_t *connection() { return m_connection; }
|
||||
const xcb_atom_t *atoms() const { return m_atoms; }
|
||||
|
@ -48,7 +48,7 @@ class QEglFSX11IntegrationPlugin : public QEglFSDeviceIntegrationPlugin
|
||||
Q_PLUGIN_METADATA(IID QEglFSDeviceIntegrationFactoryInterface_iid FILE "eglfs_x11.json")
|
||||
|
||||
public:
|
||||
QEglFSDeviceIntegration *create() Q_DECL_OVERRIDE { return new QEglFSX11Integration; }
|
||||
QEglFSDeviceIntegration *create() override { return new QEglFSX11Integration; }
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
@ -47,7 +47,7 @@ class QEglFSIntegrationPlugin : public QPlatformIntegrationPlugin
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID QPlatformIntegrationFactoryInterface_iid FILE "eglfs.json")
|
||||
public:
|
||||
QPlatformIntegration *create(const QString&, const QStringList&) Q_DECL_OVERRIDE;
|
||||
QPlatformIntegration *create(const QString&, const QStringList&) override;
|
||||
};
|
||||
|
||||
QPlatformIntegration* QEglFSIntegrationPlugin::create(const QString& system, const QStringList& paramList)
|
||||
|
Loading…
Reference in New Issue
Block a user