mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
What's New should be first page
This commit is contained in:
@@ -304,23 +304,23 @@ SourcesModel::appendGroups()
|
|||||||
m_myMusicGroup = new GroupItem( this, m_rootItem, tr( "My Music" ), 3 );
|
m_myMusicGroup = new GroupItem( this, m_rootItem, tr( "My Music" ), 3 );
|
||||||
|
|
||||||
InboxItem* inbox = new InboxItem( this, m_browse );
|
InboxItem* inbox = new InboxItem( this, m_browse );
|
||||||
inbox->setSortValue( 3 );
|
inbox->setSortValue( 4 );
|
||||||
|
|
||||||
// super collection
|
// super collection
|
||||||
/* GenericPageItem* sc = new GenericPageItem( this, m_browse, tr( "SuperCollection" ), ImageRegistry::instance()->icon( RESPATH "images/supercollection.svg" ),
|
/* 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::showSuperCollection, ViewManager::instance() ),
|
||||||
boost::bind( &ViewManager::superCollectionView, 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" ),
|
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::showNewReleasesPage, ViewManager::instance() ),
|
||||||
boost::bind( &ViewManager::newReleasesWidget, 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" ),
|
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::showRecentPlaysPage, ViewManager::instance() ),
|
||||||
boost::bind( &ViewManager::recentPlaysWidget, 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_collectionsGroup = new GroupItem( this, m_rootItem, tr( "Friends" ), 4 );
|
||||||
m_cloudGroup = new GroupItem( this, m_rootItem, tr( "Cloud" ), 5 );
|
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" ); }
|
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" ); }
|
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; }
|
bool showInfoBar() const Q_DECL_OVERRIDE { return true; }
|
||||||
};
|
};
|
||||||
|
@@ -59,7 +59,7 @@ public:
|
|||||||
virtual const QString pixmapPath() const { return ( RESPATH "images/trending.svg" ); }
|
virtual const QString pixmapPath() const { return ( RESPATH "images/trending.svg" ); }
|
||||||
virtual bool showInfoBar() const { return true; }
|
virtual bool showInfoBar() const { return true; }
|
||||||
|
|
||||||
virtual int sortValue() { return 2; }
|
virtual int sortValue() { return 3; }
|
||||||
};
|
};
|
||||||
|
|
||||||
} // Widgets
|
} // Widgets
|
||||||
|
Reference in New Issue
Block a user