1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-22 08:49:42 +01:00

Make sure not to sort, these are charts

This commit is contained in:
Leo Franchi 2011-10-17 16:59:52 -04:00
parent 7944c9f826
commit 1208035da3

@ -76,9 +76,6 @@ WhatsHotWidget::WhatsHotWidget( QWidget* parent )
connect( ui->breadCrumbLeft, SIGNAL( currentIndexChanged( QModelIndex ) ), SLOT( leftCrumbIndexChanged(QModelIndex) ) );
/// Disable sorting, its a ranked list!
ui->additionsView->proxyModel()->sort( -1 );
ui->tracksViewLeft->setFrameShape( QFrame::NoFrame );
ui->tracksViewLeft->setAttribute( Qt::WA_MacShowFocusRect, 0 );
ui->tracksViewLeft->overlay()->setEnabled( false );
@ -93,8 +90,6 @@ WhatsHotWidget::WhatsHotWidget( QWidget* parent )
ui->artistsViewLeft->setFrameShape( QFrame::NoFrame );
ui->artistsViewLeft->setAttribute( Qt::WA_MacShowFocusRect, 0 );
artistsProxy->sort( -1 ); // disable sorting, must be called after artistsViewLeft->setTreeModel
ui->artistsViewLeft->setHorizontalScrollBarPolicy( Qt::ScrollBarAlwaysOff );
ui->artistsViewLeft->header()->setVisible( false );
@ -381,6 +376,7 @@ void
WhatsHotWidget::setLeftViewAlbums( AlbumModel* model )
{
ui->additionsView->setAlbumModel( model );
ui->additionsView->proxyModel()->sort( -1 ); // disable sorting, must be called after artistsViewLeft->setTreeModel
ui->stackLeft->setCurrentIndex( 2 );
}
@ -389,6 +385,7 @@ void
WhatsHotWidget::setLeftViewArtists( TreeModel* model )
{
ui->artistsViewLeft->setTreeModel( model );
ui->artistsViewLeft->proxyModel()->sort( -1 ); // disable sorting, must be called after artistsViewLeft->setTreeModel
ui->stackLeft->setCurrentIndex( 1 );
}
@ -397,5 +394,6 @@ void
WhatsHotWidget::setLeftViewTracks( PlaylistModel* model )
{
ui->tracksViewLeft->setPlaylistModel( model );
ui->tracksViewLeft->proxyModel()->sort( -1 );
ui->stackLeft->setCurrentIndex( 0 );
}