Mark overridden methods to suppress warnings from clang

This commit is contained in:
Kovid Goyal 2020-02-06 12:18:28 +05:30
parent cea9c6cb93
commit 8a24db96f2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -36,13 +36,13 @@ public:
explicit HeadlessIntegration(const QStringList &parameters);
~HeadlessIntegration();
bool hasCapability(QPlatformIntegration::Capability cap) const;
QPlatformFontDatabase *fontDatabase() const;
bool hasCapability(QPlatformIntegration::Capability cap) const override;
QPlatformFontDatabase *fontDatabase() const override;
QPlatformWindow *createPlatformWindow(QWindow *window) const;
QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const;
QAbstractEventDispatcher *createEventDispatcher() const;
QPlatformOpenGLContext *createPlatformOpenGLContext(QOpenGLContext *context) const;
QPlatformWindow *createPlatformWindow(QWindow *window) const override;
QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const override;
QAbstractEventDispatcher *createEventDispatcher() const override;
QPlatformOpenGLContext *createPlatformOpenGLContext(QOpenGLContext *context) const override;
QStringList themeNames() const override;
QPlatformTheme *createPlatformTheme(const QString &name) const override;
@ -50,7 +50,7 @@ public:
static HeadlessIntegration *instance();
virtual QPlatformServices *services() const { return platform_services.data(); }
virtual QPlatformServices *services() const override { return platform_services.data(); }
private:
QScopedPointer<QPlatformFontDatabase> m_fontDatabase;