making startTransition aware of sunControl redirection
This commit is contained in:
parent
812f108e21
commit
0df922cba8
@ -931,6 +931,13 @@ bool QskSkinnable::isTransitionAccepted( QskAspect::Aspect aspect ) const
|
||||
|
||||
void QskSkinnable::startTransition( QskAspect::Aspect aspect,
|
||||
QskAnimationHint animationHint, QVariant from, QVariant to )
|
||||
{
|
||||
aspect.setSubControl( effectiveSubcontrol( aspect.subControl() ) );
|
||||
startHintTransition( aspect, animationHint, from, to );
|
||||
}
|
||||
|
||||
void QskSkinnable::startHintTransition( QskAspect::Aspect aspect,
|
||||
QskAnimationHint animationHint, QVariant from, QVariant to )
|
||||
{
|
||||
if ( animationHint.duration <= 0 || ( from == to ) )
|
||||
return;
|
||||
|
@ -199,6 +199,9 @@ class QSK_EXPORT QskSkinnable
|
||||
const QskSkinHintTable& hintTable() const;
|
||||
|
||||
private:
|
||||
void startHintTransition( QskAspect::Aspect,
|
||||
QskAnimationHint, QVariant from, QVariant to );
|
||||
|
||||
QVariant animatedValue( QskAspect::Aspect, QskSkinHintStatus* ) const;
|
||||
const QVariant& storedHint( QskAspect::Aspect, QskSkinHintStatus* = nullptr ) const;
|
||||
|
||||
|
@ -255,10 +255,6 @@ void QskSlider::moveHandleTo( qreal value, const QskAnimationHint& hint )
|
||||
const qreal oldPos = metric( aspect );
|
||||
setMetric( aspect, pos );
|
||||
|
||||
#if 1
|
||||
// startTransition should do this: TODO ...
|
||||
aspect.setSubControl( effectiveSubcontrol( Handle ) );
|
||||
#endif
|
||||
startTransition( aspect, hint, oldPos, pos );
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user