1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 00:09:47 +01:00

* ViewManager uses new AlbumView/AlbumModel API.

This commit is contained in:
Christian Muehlhaeuser 2012-05-31 23:14:28 +02:00
parent 54612b3512
commit a62a9d50fe

View File

@ -103,7 +103,7 @@ ViewManager::ViewManager( QObject* parent )
m_superAlbumView = new AlbumView();
m_superAlbumModel = new AlbumModel( m_superAlbumView );
m_superAlbumView->setAlbumModel( m_superAlbumModel );
m_superAlbumView->setPlayableModel( m_superAlbumModel );
m_stack->setContentsMargins( 0, 0, 0, 0 );
m_widget->setContentsMargins( 0, 0, 0, 0 );
@ -328,7 +328,7 @@ ViewManager::show( const Tomahawk::collection_ptr& collection )
{
aview = new AlbumView();
AlbumModel* amodel = new AlbumModel( aview );
aview->setAlbumModel( amodel );
aview->setPlayableModel( amodel );
amodel->addCollection( collection );
m_collectionAlbumViews.insert( collection, aview );