1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-12 17:14:00 +02:00

* Remove frame around static playlists.

This commit is contained in:
Christian Muehlhaeuser
2011-02-08 12:33:51 +01:00
parent cbb28ad6e8
commit 480434d99b

View File

@@ -155,6 +155,7 @@ PlaylistManager::show( const Tomahawk::playlist_ptr& playlist )
m_playlistModel->loadPlaylist( playlist ); m_playlistModel->loadPlaylist( playlist );
m_playlistView->setModel( m_playlistModel ); m_playlistView->setModel( m_playlistModel );
m_playlistView->setFrameShape( QFrame::NoFrame );
if ( !m_loadedPlaylists.contains( playlist ) ) if ( !m_loadedPlaylists.contains( playlist ) )
{ {
@@ -214,6 +215,7 @@ PlaylistManager::show( const Tomahawk::artist_ptr& artist )
PlaylistView* view = new PlaylistView(); PlaylistView* view = new PlaylistView();
PlaylistModel* model = new PlaylistModel(); PlaylistModel* model = new PlaylistModel();
view->setModel( model ); view->setModel( model );
view->setFrameShape( QFrame::NoFrame );
model->append( artist ); model->append( artist );
m_currentInterface = view->proxyModel(); m_currentInterface = view->proxyModel();
@@ -298,6 +300,7 @@ PlaylistManager::show( const Tomahawk::collection_ptr& collection )
AlbumView* aview = new AlbumView(); AlbumView* aview = new AlbumView();
AlbumModel* amodel = new AlbumModel( aview ); AlbumModel* amodel = new AlbumModel( aview );
aview->setModel( amodel ); aview->setModel( amodel );
aview->setFrameShape( QFrame::NoFrame );
amodel->addCollection( collection ); amodel->addCollection( collection );
m_currentInterface = aview->proxyModel(); m_currentInterface = aview->proxyModel();