QskGradientStops added

This commit is contained in:
Uwe Rathmann 2021-09-17 13:35:47 +02:00
parent 341d60e39b
commit c4e3a3aa92

View File

@ -164,7 +164,7 @@ void Box::setGradient( QskGradient::Orientation orientation,
void Box::setGradient( QskGradient::Orientation orientation,
const QColor& color1, const QColor& color2, const QColor& color3 )
{
QVector< QskGradientStop > stops;
QskGradientStops stops;
stops += QskGradientStop( 0.0, color1 );
stops += QskGradientStop( 0.5, color2 );
stops += QskGradientStop( 1.0, color3 );