mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* No more mode init.
This commit is contained in:
@@ -239,12 +239,12 @@ ViewManager::show( const Tomahawk::artist_ptr& artist )
|
|||||||
|
|
||||||
|
|
||||||
Tomahawk::ViewPage*
|
Tomahawk::ViewPage*
|
||||||
ViewManager::show( const Tomahawk::album_ptr& album, Tomahawk::ModelMode initialMode )
|
ViewManager::show( const Tomahawk::album_ptr& album )
|
||||||
{
|
{
|
||||||
AlbumInfoWidget* swidget;
|
AlbumInfoWidget* swidget;
|
||||||
if ( !m_albumViews.contains( album ) || m_albumViews.value( album ).isNull() )
|
if ( !m_albumViews.contains( album ) || m_albumViews.value( album ).isNull() )
|
||||||
{
|
{
|
||||||
swidget = new AlbumInfoWidget( album, initialMode );
|
swidget = new AlbumInfoWidget( album );
|
||||||
m_albumViews.insert( album, swidget );
|
m_albumViews.insert( album, swidget );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -151,7 +151,7 @@ public slots:
|
|||||||
Tomahawk::ViewPage* show( const Tomahawk::playlist_ptr& playlist );
|
Tomahawk::ViewPage* show( const Tomahawk::playlist_ptr& playlist );
|
||||||
Tomahawk::ViewPage* show( const Tomahawk::dynplaylist_ptr& playlist );
|
Tomahawk::ViewPage* show( const Tomahawk::dynplaylist_ptr& playlist );
|
||||||
Tomahawk::ViewPage* show( const Tomahawk::artist_ptr& artist );
|
Tomahawk::ViewPage* show( const Tomahawk::artist_ptr& artist );
|
||||||
Tomahawk::ViewPage* show( const Tomahawk::album_ptr& album, Tomahawk::ModelMode withInitialMode = Tomahawk::InfoSystemMode );
|
Tomahawk::ViewPage* show( const Tomahawk::album_ptr& album );
|
||||||
Tomahawk::ViewPage* show( const Tomahawk::query_ptr& query );
|
Tomahawk::ViewPage* show( const Tomahawk::query_ptr& query );
|
||||||
Tomahawk::ViewPage* show( const Tomahawk::collection_ptr& collection );
|
Tomahawk::ViewPage* show( const Tomahawk::collection_ptr& collection );
|
||||||
Tomahawk::ViewPage* show( const Tomahawk::source_ptr& source );
|
Tomahawk::ViewPage* show( const Tomahawk::source_ptr& source );
|
||||||
|
@@ -94,7 +94,7 @@ ArtistView::ArtistView( QWidget* parent )
|
|||||||
|
|
||||||
ArtistView::~ArtistView()
|
ArtistView::~ArtistView()
|
||||||
{
|
{
|
||||||
qDebug() << Q_FUNC_INFO;
|
tDebug() << Q_FUNC_INFO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -224,7 +224,7 @@ ArtistView::onItemActivated( const QModelIndex& index )
|
|||||||
if ( !item->artist().isNull() )
|
if ( !item->artist().isNull() )
|
||||||
ViewManager::instance()->show( item->artist() );
|
ViewManager::instance()->show( item->artist() );
|
||||||
else if ( !item->album().isNull() )
|
else if ( !item->album().isNull() )
|
||||||
ViewManager::instance()->show( item->album(), m_model->mode() );
|
ViewManager::instance()->show( item->album() );
|
||||||
else if ( !item->result().isNull() && item->result()->isOnline() )
|
else if ( !item->result().isNull() && item->result()->isOnline() )
|
||||||
{
|
{
|
||||||
m_model->setCurrentItem( item->index );
|
m_model->setCurrentItem( item->index );
|
||||||
|
Reference in New Issue
Block a user