mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 07:49:42 +01:00
Fix animations in breadcrumb and remove some dead code
This commit is contained in:
parent
372eda8f2f
commit
855180f905
@ -121,10 +121,10 @@ Breadcrumb::updateButtons( const QModelIndex& updateFrom )
|
||||
// Animate all buttons except the first
|
||||
if ( m_buttons.count() > 0 )
|
||||
{
|
||||
QPropertyAnimation* animation = new QPropertyAnimation( btn, "x" );
|
||||
QPropertyAnimation* animation = new QPropertyAnimation( btn, "pos" );
|
||||
animation->setDuration( 300 );
|
||||
animation->setStartValue( m_buttons.last()->pos().x() );
|
||||
animation->setEndValue( btn->pos().x() );
|
||||
animation->setStartValue( m_buttons.last()->pos());
|
||||
animation->setEndValue( btn->pos() );
|
||||
animation->start( QAbstractAnimation::DeleteWhenStopped );
|
||||
}
|
||||
|
||||
@ -165,11 +165,3 @@ Breadcrumb::breadcrumbComboChanged( const QModelIndex& childSelected )
|
||||
tDebug() << "Combo changed:" << childSelected.data();
|
||||
updateButtons( childSelected );
|
||||
}
|
||||
|
||||
|
||||
// void
|
||||
// Breadcrumb::currentIndexChanged( const QModelIndex& current, const QModelIndex& previous )
|
||||
// {
|
||||
//
|
||||
// }
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user