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:
@@ -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" );
|
||||
}
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user