This commit is contained in:
Uwe Rathmann 2022-10-15 13:25:25 +02:00
commit 4592ebfd3d
3 changed files with 4 additions and 4 deletions

View File

@ -98,10 +98,12 @@ namespace
return value * factor;
}
#if 0
inline double operator ""_dp( long double value )
{
return dpToPixels( value );
}
#endif
inline double operator ""_dp( unsigned long long int value )
{

View File

@ -49,9 +49,7 @@ QskHashValue QskArcNode::hash( const void* nodeData ) const
const auto arcData = reinterpret_cast< const ArcData* >( nodeData );
auto h = arcData->metrics.hash();
for( const auto& stop : qAsConst( arcData->gradient.stops() ) )
h = stop.hash( h );
return arcData->gradient.hash( h );
return h;
}

View File

@ -19,7 +19,7 @@ void QskArcRenderer::renderArc(const QRectF& rect,
QGradientStops stops;
stops.reserve( gradient.stops().count() );
for( const QskGradientStop& stop : qAsConst( gradient.stops() ) )
for( const auto& stop : qAsConst( gradient.stops() ) )
stops += QGradientStop( stop.position(), stop.color() );
/*