Merge branch 'master' of https://github.com/uwerat/qskinny
This commit is contained in:
commit
4592ebfd3d
|
@ -98,10 +98,12 @@ namespace
|
||||||
return value * factor;
|
return value * factor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
inline double operator ""_dp( long double value )
|
inline double operator ""_dp( long double value )
|
||||||
{
|
{
|
||||||
return dpToPixels( value );
|
return dpToPixels( value );
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
inline double operator ""_dp( unsigned long long int value )
|
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 );
|
const auto arcData = reinterpret_cast< const ArcData* >( nodeData );
|
||||||
|
|
||||||
auto h = arcData->metrics.hash();
|
auto h = arcData->metrics.hash();
|
||||||
|
return arcData->gradient.hash( h );
|
||||||
for( const auto& stop : qAsConst( arcData->gradient.stops() ) )
|
|
||||||
h = stop.hash( h );
|
|
||||||
|
|
||||||
return h;
|
return h;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ void QskArcRenderer::renderArc(const QRectF& rect,
|
||||||
QGradientStops stops;
|
QGradientStops stops;
|
||||||
stops.reserve( gradient.stops().count() );
|
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() );
|
stops += QGradientStop( stop.position(), stop.color() );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue