From a7a0510c210c7b07c8bdaf68d8cca3dfeb3fe263 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Thu, 22 Dec 2022 17:51:57 +0100 Subject: [PATCH] QskBoxFillNode instead of QskRectangleNode --- playground/gradients/GradientView.cpp | 14 +++++++------- playground/gradients/GradientView.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/playground/gradients/GradientView.cpp b/playground/gradients/GradientView.cpp index 59211c24..936892b9 100644 --- a/playground/gradients/GradientView.cpp +++ b/playground/gradients/GradientView.cpp @@ -10,7 +10,7 @@ #endif #include -#include +#include #include #include #include @@ -76,12 +76,12 @@ namespace text = "QskPaintedNode"; break; - case GradientView::Rectangle: - text = "QskRectangleNode"; + case GradientView::BoxRectangle: + text = "QskBoxRectangleNode"; break; case GradientView::BoxFill: - text = "QskBoxRectangleNode"; + text = "QskBoxFillNode"; break; #ifdef SHAPE_GRADIENT @@ -156,14 +156,14 @@ QSGNode* GradientView::updatePaintNode( return node; } - case Rectangle: + case BoxFill: { - auto node = gradientNode< QskRectangleNode >( oldNode ); + auto node = gradientNode< QskBoxFillNode >( oldNode ); node->updateNode( rect, m_gradient ); return node; } - case BoxFill: + case BoxRectangle: { if ( !QskBoxRenderer::isGradientSupported( QskBoxShapeMetrics(), m_gradient ) ) diff --git a/playground/gradients/GradientView.h b/playground/gradients/GradientView.h index f0c7ebe4..3d8d4646 100644 --- a/playground/gradients/GradientView.h +++ b/playground/gradients/GradientView.h @@ -18,8 +18,8 @@ class GradientView : public QQuickItem enum NodeType { Painted, - Rectangle, BoxFill, + BoxRectangle, #ifdef SHAPE_GRADIENT Shape, #endif