mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 15:59:42 +01:00
What's New should be first page
This commit is contained in:
parent
57a4276e96
commit
db84ab1f7f
@ -304,23 +304,23 @@ SourcesModel::appendGroups()
|
||||
m_myMusicGroup = new GroupItem( this, m_rootItem, tr( "My Music" ), 3 );
|
||||
|
||||
InboxItem* inbox = new InboxItem( this, m_browse );
|
||||
inbox->setSortValue( 3 );
|
||||
inbox->setSortValue( 4 );
|
||||
|
||||
// super collection
|
||||
/* GenericPageItem* sc = new GenericPageItem( this, m_browse, tr( "SuperCollection" ), ImageRegistry::instance()->icon( RESPATH "images/supercollection.svg" ),
|
||||
boost::bind( &ViewManager::showSuperCollection, ViewManager::instance() ),
|
||||
boost::bind( &ViewManager::superCollectionView, ViewManager::instance() ) );
|
||||
sc->setSortValue( 4 );*/
|
||||
sc->setSortValue( 5 );*/
|
||||
|
||||
GenericPageItem* newReleases = new GenericPageItem( this, m_browse, tr( "New Releases" ), ImageRegistry::instance()->icon( RESPATH "images/new-releases.svg" ),
|
||||
boost::bind( &ViewManager::showNewReleasesPage, ViewManager::instance() ),
|
||||
boost::bind( &ViewManager::newReleasesWidget, ViewManager::instance() ) );
|
||||
newReleases->setSortValue( 6 );
|
||||
newReleases->setSortValue( 7 );
|
||||
|
||||
GenericPageItem* recent = new GenericPageItem( this, m_browse, tr( "Recently Played" ), ImageRegistry::instance()->icon( RESPATH "images/recently-played.svg" ),
|
||||
boost::bind( &ViewManager::showRecentPlaysPage, ViewManager::instance() ),
|
||||
boost::bind( &ViewManager::recentPlaysWidget, ViewManager::instance() ) );
|
||||
recent->setSortValue( 7 );
|
||||
recent->setSortValue( 8 );
|
||||
|
||||
m_collectionsGroup = new GroupItem( this, m_rootItem, tr( "Friends" ), 4 );
|
||||
m_cloudGroup = new GroupItem( this, m_rootItem, tr( "Cloud" ), 5 );
|
||||
|
@ -102,7 +102,7 @@ public:
|
||||
QString description() const Q_DECL_OVERRIDE { return tr( "An overview of your friends' recent activity" ); }
|
||||
const QString pixmapPath() const Q_DECL_OVERRIDE { return ( RESPATH "images/dashboard.svg" ); }
|
||||
|
||||
int sortValue() Q_DECL_OVERRIDE { return 1; }
|
||||
int sortValue() Q_DECL_OVERRIDE { return 2; }
|
||||
|
||||
bool showInfoBar() const Q_DECL_OVERRIDE { return true; }
|
||||
};
|
||||
|
@ -59,7 +59,7 @@ public:
|
||||
virtual const QString pixmapPath() const { return ( RESPATH "images/trending.svg" ); }
|
||||
virtual bool showInfoBar() const { return true; }
|
||||
|
||||
virtual int sortValue() { return 2; }
|
||||
virtual int sortValue() { return 3; }
|
||||
};
|
||||
|
||||
} // Widgets
|
||||
|
Loading…
x
Reference in New Issue
Block a user