Skip to content

Commit

Permalink
Change New Additions page to fit other pages more, with title and des…
Browse files Browse the repository at this point in the history
…cription and icon.
  • Loading branch information
lfranchi committed Aug 14, 2011
1 parent 9313de5 commit 83b3758
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libtomahawk/widgets/infowidgets/sourceinfowidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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" );
}


Expand Down
2 changes: 2 additions & 0 deletions src/libtomahawk/widgets/infowidgets/sourceinfowidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Q_OBJECT

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; }

Expand All @@ -70,6 +71,7 @@ private slots:

QString m_title;
QString m_description;
QPixmap m_pixmap;
};

#endif // SOURCEINFOWIDGET_H

0 comments on commit 83b3758

Please sign in to comment.