1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 19:30:21 +02:00

Change New Additions page to fit other pages more, with title and description and icon.

This commit is contained in:
Leo Franchi
2011-08-14 14:38:44 -04:00
parent 9313de5b17
commit 83b3758a25
2 changed files with 5 additions and 1 deletions

View File

@@ -66,7 +66,9 @@ SourceInfoWidget::SourceInfoWidget( const Tomahawk::source_ptr& source, QWidget*
ui->recentAlbumView->setAlbumModel( m_recentAlbumModel );
m_recentAlbumModel->addFilteredCollection( source->collection(), 20, DatabaseCommand_AllAlbums::ModificationTime );
m_title = tr( "Info about %1" ).arg( source->isLocal() ? tr( "Your Collection" ) : source->friendlyName() );
m_title = tr( "New Additions" );
m_description = tr( "Recent activity from %1" ).arg( source->isLocal() ? tr( "Your Collection" ) : source->friendlyName() );
m_pixmap.load( RESPATH "images/new-additions.png" );
}

View File

@@ -50,6 +50,7 @@ public:
virtual QString title() const { return m_title; }
virtual QString description() const { return m_description; }
virtual QPixmap pixmap() const { return m_pixmap; }
virtual bool showStatsBar() const { return false; }
@@ -70,6 +71,7 @@ private:
QString m_title;
QString m_description;
QPixmap m_pixmap;
};
#endif // SOURCEINFOWIDGET_H