Merge branch 'master' of https://github.com/uwerat/qskinny
This commit is contained in:
commit
4592ebfd3d
@ -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 )
|
||||
{
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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() );
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user