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:
parent
888bfca6f5
commit
db9ccf778b
@ -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;
|
||||
|
@ -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 };
|
||||
|
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user