QskMenu::Cursor transition fixed

This commit is contained in:
Uwe Rathmann 2021-12-29 17:19:19 +01:00
parent f45be55e90
commit 89a2a395fd
3 changed files with 3 additions and 3 deletions

View File

@ -334,7 +334,7 @@ void Editor::setupMenu()
setPosition( Q::Panel | QskPopup::Closed, 1 );
setAnimation( Q::Panel | A::Metric, 150 );
setAnimation( Q::Cursor | A::Metric, 50, QEasingCurve::OutCubic );
setAnimation( Q::Cursor | A::Position | A::Metric, 75, QEasingCurve::OutCubic );
}
void Editor::setupTextLabel()

View File

@ -252,7 +252,7 @@ void QskMenu::traverse( int steps )
if ( newIndex < 0 )
newIndex += count();
if ( hasAnimationHint( Cursor | QskAspect::Metric ) )
if ( hasAnimationHint( Cursor | QskAspect::Position | QskAspect::Metric ) )
{
// when cycling we want slide in

View File

@ -848,7 +848,7 @@ bool QskSkinnable::moveSkinHint( QskAspect aspect,
if ( ok && oldValue.isValid() && newValue.isValid() )
{
const auto animation = animationHint( aspect.subControl() | aspect.type() );
const auto animation = animationHint( aspect );
if ( animation.isValid() )
{
if ( newValue != oldValue )