diff --git a/playground/gradients/GradientView.cpp b/playground/gradients/GradientView.cpp index 462f69ef..ad37ca25 100644 --- a/playground/gradients/GradientView.cpp +++ b/playground/gradients/GradientView.cpp @@ -75,20 +75,20 @@ namespace switch( nodeType ) { case GradientView::Painted: - text = "QskPaintedNode"; + text = "Raster PaintEngine"; break; case GradientView::BoxRectangle: - text = "QskBoxRectangleNode"; + text = "Colored Vertices"; break; case GradientView::BoxFill: - text = "QskBoxFillNode"; + text = "Qskinny Shader"; break; #ifdef SHAPE_GRADIENT case GradientView::Shape: - text = "QQuickShapeGenericNode"; + text = "Qt/Quick Shape Shader"; break; #endif @@ -149,6 +149,11 @@ QSGNode* GradientView::updatePaintNode( { const QRectF rect( 0, 0, width(), height() ); + QskBoxShapeMetrics shape; +#if 0 + shape.setRadius( 80 ); +#endif + switch( m_nodeType ) { case Painted: @@ -167,17 +172,6 @@ QSGNode* GradientView::updatePaintNode( } case BoxRectangle: { - QskBoxShapeMetrics shape; -#if 0 - shape.setRadius( 80 ); -#endif - - if ( !QskBoxRenderer::isGradientSupported( m_gradient ) ) - { - delete oldNode; - return nullptr; - } - auto node = gradientNode< QskBoxRectangleNode >( oldNode ); node->updateNode( rect, shape, m_gradient );