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

* AlbumInfoWidget uses new AlbumView/AlbumModel API.

This commit is contained in:
Christian Muehlhaeuser 2012-05-31 23:13:09 +02:00
parent bf9052bb1b
commit 088ff60339
2 changed files with 6 additions and 6 deletions

View File

@ -25,7 +25,7 @@
#include "ViewManager.h"
#include "database/Database.h"
#include "playlist/TreeModel.h"
#include "playlist/AlbumModel.h"
#include "playlist/PlayableModel.h"
#include "Source.h"
#include "database/DatabaseCommand_AllTracks.h"
@ -50,8 +50,8 @@ AlbumInfoWidget::AlbumInfoWidget( const Tomahawk::album_ptr& album, QWidget* par
TomahawkUtils::unmarginLayout( ui->verticalLayout );
TomahawkUtils::unmarginLayout( ui->verticalLayout_2 );
m_albumsModel = new AlbumModel( ui->albumsView );
ui->albumsView->setAlbumModel( m_albumsModel );
m_albumsModel = new PlayableModel( ui->albumsView );
ui->albumsView->setPlayableModel( m_albumsModel );
m_tracksModel = new TreeModel( ui->tracksView );
m_tracksModel->setMode( Mixed );
@ -183,7 +183,7 @@ AlbumInfoWidget::gotAlbums( const QList<Tomahawk::album_ptr>& albums )
if ( al.contains( m_album ) )
al.removeAll( m_album );
m_albumsModel->addAlbums( al );
m_albumsModel->append( al );
}

View File

@ -39,7 +39,7 @@
#include "DllMacro.h"
#include "Typedefs.h"
class AlbumModel;
class PlayableModel;
class TreeModel;
class OverlayButton;
@ -104,7 +104,7 @@ private:
Tomahawk::album_ptr m_album;
AlbumModel* m_albumsModel;
PlayableModel* m_albumsModel;
TreeModel* m_tracksModel;
QString m_title;