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:
parent
54612b3512
commit
a62a9d50fe
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user