mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
assert less :(
This commit is contained in:
@@ -156,7 +156,7 @@ PlaylistManager::show( const Tomahawk::playlist_ptr& playlist )
|
|||||||
{
|
{
|
||||||
view = new PlaylistView();
|
view = new PlaylistView();
|
||||||
PlaylistModel* model = new PlaylistModel();
|
PlaylistModel* model = new PlaylistModel();
|
||||||
view->setModel( model );
|
view->setPlaylistModel( model );
|
||||||
view->setFrameShape( QFrame::NoFrame );
|
view->setFrameShape( QFrame::NoFrame );
|
||||||
view->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
view->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
||||||
model->loadPlaylist( playlist );
|
model->loadPlaylist( playlist );
|
||||||
@@ -212,7 +212,7 @@ PlaylistManager::show( const Tomahawk::artist_ptr& artist )
|
|||||||
{
|
{
|
||||||
view = new PlaylistView();
|
view = new PlaylistView();
|
||||||
PlaylistModel* model = new PlaylistModel();
|
PlaylistModel* model = new PlaylistModel();
|
||||||
view->setModel( model );
|
view->setPlaylistModel( model );
|
||||||
view->setFrameShape( QFrame::NoFrame );
|
view->setFrameShape( QFrame::NoFrame );
|
||||||
view->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
view->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
||||||
model->append( artist );
|
model->append( artist );
|
||||||
@@ -239,7 +239,7 @@ PlaylistManager::show( const Tomahawk::album_ptr& album )
|
|||||||
{
|
{
|
||||||
view = new PlaylistView();
|
view = new PlaylistView();
|
||||||
PlaylistModel* model = new PlaylistModel();
|
PlaylistModel* model = new PlaylistModel();
|
||||||
view->setModel( model );
|
view->setPlaylistModel( model );
|
||||||
view->setFrameShape( QFrame::NoFrame );
|
view->setFrameShape( QFrame::NoFrame );
|
||||||
view->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
view->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
||||||
model->append( album );
|
model->append( album );
|
||||||
@@ -292,7 +292,7 @@ PlaylistManager::show( const Tomahawk::collection_ptr& collection )
|
|||||||
{
|
{
|
||||||
aview = new AlbumView();
|
aview = new AlbumView();
|
||||||
AlbumModel* amodel = new AlbumModel( aview );
|
AlbumModel* amodel = new AlbumModel( aview );
|
||||||
aview->setModel( amodel );
|
aview->setAlbumModel( amodel );
|
||||||
aview->setFrameShape( QFrame::NoFrame );
|
aview->setFrameShape( QFrame::NoFrame );
|
||||||
aview->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
aview->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
||||||
amodel->addCollection( collection );
|
amodel->addCollection( collection );
|
||||||
|
Reference in New Issue
Block a user