diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2017-01-12 13:25:48 +0100 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2017-01-23 16:20:03 +0000 |
commit | f72d63866d3f5820865fcd309b649dc9932518ee (patch) | |
tree | 675610cbbc8a88f0197c351e754e7892e4eb7871 /examples/wayland/custom-extension | |
parent | 76b0fa5ca41df2528ba52fa7601c4bc89e60c03b (diff) |
Replace all occurrences of Q_DECL_OVERRIDE with override
Change-Id: I16b7b23efe944b49d1fcc9e7588cdb0a991cebd1
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'examples/wayland/custom-extension')
4 files changed, 11 insertions, 11 deletions
diff --git a/examples/wayland/custom-extension/client-common/customextension.h b/examples/wayland/custom-extension/client-common/customextension.h index 3b64fc646..9f7fac782 100644 --- a/examples/wayland/custom-extension/client-common/customextension.h +++ b/examples/wayland/custom-extension/client-common/customextension.h @@ -69,11 +69,11 @@ private slots: void handleExtensionActive(); private: - void example_extension_close(wl_surface *surface) Q_DECL_OVERRIDE; - void example_extension_set_font_size(wl_surface *surface, uint32_t pixel_size) Q_DECL_OVERRIDE; - void example_extension_set_window_decoration(uint32_t state) Q_DECL_OVERRIDE; + void example_extension_close(wl_surface *surface) override; + void example_extension_set_font_size(wl_surface *surface, uint32_t pixel_size) override; + void example_extension_set_window_decoration(uint32_t state) override; - bool eventFilter(QObject *object, QEvent *event) Q_DECL_OVERRIDE; + bool eventFilter(QObject *object, QEvent *event) override; QWindow *windowForSurface(struct ::wl_surface *); void sendWindowRegistration(QWindow *); diff --git a/examples/wayland/custom-extension/client-common/main.cpp b/examples/wayland/custom-extension/client-common/main.cpp index 8c27fa77d..ad7c027ff 100644 --- a/examples/wayland/custom-extension/client-common/main.cpp +++ b/examples/wayland/custom-extension/client-common/main.cpp @@ -54,7 +54,7 @@ class CustomIntegrationPlugin : public QPlatformIntegrationPlugin Q_OBJECT Q_PLUGIN_METADATA(IID QPlatformIntegrationFactoryInterface_iid FILE "client.json") public: - QPlatformIntegration *create(const QString&, const QStringList&) Q_DECL_OVERRIDE; + QPlatformIntegration *create(const QString&, const QStringList&) override; }; QPlatformIntegration *CustomIntegrationPlugin::create(const QString& system, const QStringList& paramList) diff --git a/examples/wayland/custom-extension/compositor/customextension.h b/examples/wayland/custom-extension/compositor/customextension.h index b1b00408b..7f09ad0eb 100644 --- a/examples/wayland/custom-extension/compositor/customextension.h +++ b/examples/wayland/custom-extension/compositor/customextension.h @@ -54,7 +54,7 @@ class CustomExtension : public QWaylandCompositorExtensionTemplate<CustomExtens Q_OBJECT public: CustomExtension(QWaylandCompositor *compositor = 0); - void initialize() Q_DECL_OVERRIDE; + void initialize() override; signals: void surfaceAdded(QWaylandSurface *surface); @@ -67,9 +67,9 @@ public slots: void close(QWaylandSurface *surface); protected: - void example_extension_bounce(Resource *resource, wl_resource *surface, uint32_t duration) Q_DECL_OVERRIDE; - void example_extension_spin(Resource *resource, wl_resource *surface, uint32_t duration) Q_DECL_OVERRIDE; - void example_extension_register_surface(Resource *resource, wl_resource *surface) Q_DECL_OVERRIDE; + void example_extension_bounce(Resource *resource, wl_resource *surface, uint32_t duration) override; + void example_extension_spin(Resource *resource, wl_resource *surface, uint32_t duration) override; + void example_extension_register_surface(Resource *resource, wl_resource *surface) override; }; Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_CLASS(CustomExtension) diff --git a/examples/wayland/custom-extension/cpp-client/main.cpp b/examples/wayland/custom-extension/cpp-client/main.cpp index af8de53b5..3dbada171 100644 --- a/examples/wayland/custom-extension/cpp-client/main.cpp +++ b/examples/wayland/custom-extension/cpp-client/main.cpp @@ -100,7 +100,7 @@ public slots: } protected: - void paintEvent(QPaintEvent *) Q_DECL_OVERRIDE + void paintEvent(QPaintEvent *) override { QPainter p(this); p.setFont(m_font); @@ -113,7 +113,7 @@ protected: p.drawText(rect3, Qt::TextWordWrap, "Create new window."); } - void mousePressEvent(QMouseEvent *ev) Q_DECL_OVERRIDE + void mousePressEvent(QMouseEvent *ev) override { if (rect1.contains(ev->pos())) doSpin(); |