minor fixes

This commit is contained in:
Uwe Rathmann 2024-07-15 10:59:43 +02:00
parent 28528b29e8
commit 9086c94715
2 changed files with 9 additions and 7 deletions

View File

@ -208,7 +208,8 @@ void QskArcNode::setArcData( const QRectF& rect, const QskArcMetrics& arcMetrics
}
#ifdef ARC_BORDER_NODE
borderNode->updateNode( arcRect, metricsArc, borderWidth, borderColor );
borderNode->updateNode( arcRect, metricsArc, radial,
borderWidth, borderColor, QskGradient() );
#else
QPen pen( borderColor, borderWidth );
pen.setCapStyle( Qt::FlatCap );

View File

@ -101,16 +101,17 @@ void QskArcRenderNode::updateNode(
{
d->hash = hash;
#if 0
if ( borderWidth > 0.0 )
if ( borderWidth > 0.0 && borderColor.isValid() )
{
QskArcRenderer::renderBorder(
rect, metrics, borderWidth, radial, borderColor, *geometry() );
rect, metrics, radial, borderWidth, borderColor, *geometry() );
}
#endif
QskArcRenderer::renderFillGeometry(
rect, metrics, radial, borderWidth, gradient, *geometry() );
if ( gradient.isVisible() )
{
QskArcRenderer::renderFillGeometry(
rect, metrics, radial, borderWidth, gradient, *geometry() );
}
markDirty( QSGNode::DirtyGeometry );
markDirty( QSGNode::DirtyMaterial );