1
0
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:
Leo Franchi 2011-11-01 19:00:45 -04:00
parent 372eda8f2f
commit 855180f905

View File

@ -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 )
// {
//
// }
//