mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +02:00
* Use an AlbumItemDelegate for Artist page.
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
|
||||
#include "audio/AudioEngine.h"
|
||||
#include "playlist/GridItemDelegate.h"
|
||||
#include "playlist/AlbumItemDelegate.h"
|
||||
#include "playlist/PlayableModel.h"
|
||||
#include "playlist/TreeModel.h"
|
||||
#include "playlist/PlaylistModel.h"
|
||||
@@ -77,6 +78,9 @@ ArtistInfoWidget::ArtistInfoWidget( const Tomahawk::artist_ptr& artist, QWidget*
|
||||
ui->topHits->setEmptyTip( tr( "Sorry, we could not find any top hits for this artist!" ) );
|
||||
ui->topHits->setAutoResize( true );
|
||||
|
||||
AlbumItemDelegate* del = new AlbumItemDelegate( ui->topHits, ui->topHits->proxyModel() );
|
||||
ui->topHits->setPlaylistItemDelegate( del );
|
||||
|
||||
ui->relatedArtists->setAutoFitItems( false );
|
||||
ui->relatedArtists->setWrapping( false );
|
||||
ui->relatedArtists->setVerticalScrollBarPolicy( Qt::ScrollBarAlwaysOff );
|
||||
|
Reference in New Issue
Block a user