1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-02-25 20:33:20 +01:00

* PlayableProxyModel::ShortWithAvatars is obsolete.

This commit is contained in:
Christian Muehlhaeuser 2013-09-03 12:32:11 +02:00
parent 888bfca6f5
commit db9ccf778b
3 changed files with 2 additions and 4 deletions

View File

@ -507,7 +507,6 @@ PlayableProxyModel::columnCount( const QModelIndex& parent ) const
switch ( m_style )
{
case Short:
case ShortWithAvatars:
case Large:
return 1;
break;
@ -571,7 +570,6 @@ PlayableProxyModel::columnWeights() const
switch ( m_style )
{
case Short:
case ShortWithAvatars:
case Large:
w << 1.0;
break;

View File

@ -33,7 +33,7 @@ Q_OBJECT
public:
enum PlayableItemStyle
{ Detailed = 0, Short = 1, ShortWithAvatars = 2, Large = 3, Collection = 4 };
{ Detailed = 0, Short = 1, Large = 3, Collection = 4 };
enum PlayableProxyModelRole
{ StyleRole = Qt::UserRole + 1, TypeRole };

View File

@ -75,7 +75,7 @@ DashboardWidget::DashboardWidget( QWidget* parent )
{
m_tracksModel = new RecentlyPlayedModel( ui->tracksView, HISTORY_TRACK_ITEMS );
ui->tracksView->proxyModel()->setStyle( PlayableProxyModel::ShortWithAvatars );
ui->tracksView->proxyModel()->setStyle( PlayableProxyModel::Short );
ui->tracksView->overlay()->setEnabled( false );
ui->tracksView->setPlaylistModel( m_tracksModel );
ui->tracksView->setAutoResize( true );