background transtion fixed

This commit is contained in:
Uwe Rathmann 2022-11-18 12:12:05 +01:00
parent 116b835906
commit d45e63083f
1 changed files with 3 additions and 3 deletions

View File

@ -61,14 +61,14 @@ class GraphicLabel : public QskGraphicLabel
const int duration = 500;
const auto oldGradient = background();
const auto oldGradient = gradientHint( Panel );
setGradientHint( Panel, gradient );
// finally setup a smooth transition manually
startTransition( QskAspect::Control | QskAspect::Color, duration,
startTransition( Panel | QskAspect::Color, duration,
QVariant::fromValue( oldGradient ), QVariant::fromValue( gradient ) );
startTransition( QskGraphicLabel::Graphic | QskAspect::GraphicRole,
startTransition( Graphic | QskAspect::GraphicRole,
duration, oldRole, graphicRole() );
}
};