diff options
Diffstat (limited to 'tests/auto/core/nodes/tst_nodes.cpp')
-rw-r--r-- | tests/auto/core/nodes/tst_nodes.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/auto/core/nodes/tst_nodes.cpp b/tests/auto/core/nodes/tst_nodes.cpp index 49618821c..0ec661fed 100644 --- a/tests/auto/core/nodes/tst_nodes.cpp +++ b/tests/auto/core/nodes/tst_nodes.cpp @@ -105,10 +105,10 @@ public: : m_spy(spy) {} - void sceneChangeEvent(const Qt3DCore::QSceneChangePtr &) Q_DECL_FINAL {}; - void setScene(Qt3DCore::QScene *) Q_DECL_FINAL {}; - void notifyBackend(const Qt3DCore::QSceneChangePtr &change) Q_DECL_FINAL; - bool shouldNotifyFrontend(const Qt3DCore::QSceneChangePtr &changee) Q_DECL_FINAL { Q_UNUSED(changee); return false; } + void sceneChangeEvent(const Qt3DCore::QSceneChangePtr &) final {}; + void setScene(Qt3DCore::QScene *) final {}; + void notifyBackend(const Qt3DCore::QSceneChangePtr &change) final; + bool shouldNotifyFrontend(const Qt3DCore::QSceneChangePtr &changee) final { Q_UNUSED(changee); return false; } private: ObserverSpy *m_spy; @@ -139,24 +139,24 @@ public: { } - void sceneChangeEventWithLock(const Qt3DCore::QSceneChangePtr &e) Q_DECL_OVERRIDE + void sceneChangeEventWithLock(const Qt3DCore::QSceneChangePtr &e) override { events << ChangeRecord(e, true); } - void sceneChangeEventWithLock(const Qt3DCore::QSceneChangeList &e) Q_DECL_OVERRIDE + void sceneChangeEventWithLock(const Qt3DCore::QSceneChangeList &e) override { for (size_t i = 0, m = e.size(); i < m; ++i) { events << ChangeRecord(e.at(i), false); } } - void sceneChangeEvent(const Qt3DCore::QSceneChangePtr &e) Q_DECL_OVERRIDE + void sceneChangeEvent(const Qt3DCore::QSceneChangePtr &e) override { events << ChangeRecord(e, false); } - Qt3DCore::QAbstractPostman *postman() const Q_DECL_FINAL + Qt3DCore::QAbstractPostman *postman() const final { return m_postman.data(); } |