mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-23 17:29:42 +01:00
* Added title & description for latest special ViewPages.
This commit is contained in:
parent
79c2c12631
commit
789536c49f
@ -494,6 +494,8 @@ ViewManager::showRecentPlaysPage()
|
||||
pv->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
||||
|
||||
RecentlyPlayedModel* raModel = new RecentlyPlayedModel( source_ptr(), pv );
|
||||
raModel->setTitle( tr( "Recently Played Tracks" ) );
|
||||
raModel->setDescription( tr( "Recently played tracks from all your friends" ) );
|
||||
raModel->setStyle( TrackModel::Large );
|
||||
|
||||
PlaylistLargeItemDelegate* del = new PlaylistLargeItemDelegate( PlaylistLargeItemDelegate::RecentlyPlayed, pv, pv->proxyModel() );
|
||||
|
@ -534,6 +534,12 @@ SourceItem::latestAdditionsClicked()
|
||||
|
||||
RecentlyAddedModel* raModel = new RecentlyAddedModel( m_source, cv );
|
||||
raModel->setStyle( TrackModel::Large );
|
||||
raModel->setTitle( tr( "Latest Additions" ) );
|
||||
|
||||
if ( m_source->isLocal() )
|
||||
raModel->setDescription( tr( "Latest additions to your collection" ) );
|
||||
else
|
||||
raModel->setDescription( tr( "Latest additions to %1's collection" ).arg( m_source->friendlyName() ) );
|
||||
|
||||
PlaylistLargeItemDelegate* del = new PlaylistLargeItemDelegate( PlaylistLargeItemDelegate::LatestAdditions, cv, cv->proxyModel() );
|
||||
connect( del, SIGNAL( updateIndex( QModelIndex ) ), cv, SLOT( update( QModelIndex ) ) );
|
||||
@ -568,6 +574,12 @@ SourceItem::recentPlaysClicked()
|
||||
|
||||
RecentlyPlayedModel* raModel = new RecentlyPlayedModel( m_source, pv );
|
||||
raModel->setStyle( TrackModel::Large );
|
||||
raModel->setTitle( tr( "Recently Played Tracks" ) );
|
||||
|
||||
if ( m_source->isLocal() )
|
||||
raModel->setDescription( tr( "Your recently played tracks" ) );
|
||||
else
|
||||
raModel->setDescription( tr( "%1's recently played tracks" ).arg( m_source->friendlyName() ) );
|
||||
|
||||
PlaylistLargeItemDelegate* del = new PlaylistLargeItemDelegate( PlaylistLargeItemDelegate::RecentlyPlayed, pv, pv->proxyModel() );
|
||||
connect( del, SIGNAL( updateIndex( QModelIndex ) ), pv, SLOT( update( QModelIndex ) ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user