diff --git a/playground/parrots/Overlay.cpp b/playground/parrots/Overlay.cpp index 63a98178..f17827f5 100644 --- a/playground/parrots/Overlay.cpp +++ b/playground/parrots/Overlay.cpp @@ -19,7 +19,7 @@ namespace { - class Material : public TextureFilterMaterial + class Material final : public TextureFilterMaterial { public: using TextureFilterMaterial::TextureFilterMaterial; @@ -31,7 +31,7 @@ namespace } }; - class FilterNode : public TextureFilterNode + class FilterNode final : public TextureFilterNode { public: FilterNode( bool useRhi, QSGTexture* texture ) @@ -52,7 +52,7 @@ namespace } }; - class Skinlet : public QskSkinlet + class Skinlet final : public QskSkinlet { using Inherited = QskSkinlet; @@ -70,8 +70,8 @@ namespace return contentsRect; } - QSGNode* updateSubNode( - const QskSkinnable* skinnable, quint8 nodeRole, QSGNode* node ) const + QSGNode* updateSubNode( const QskSkinnable* skinnable, + quint8 nodeRole, QSGNode* node ) const override { const auto overlay = static_cast< const Overlay* >( skinnable ); diff --git a/playground/parrots/main.cpp b/playground/parrots/main.cpp index 00130446..7d61af84 100644 --- a/playground/parrots/main.cpp +++ b/playground/parrots/main.cpp @@ -146,7 +146,7 @@ class MainView : public QskControl } protected: - void updateLayout() + void updateLayout() override { if ( m_background ) m_background->setGeometry( rect() );