1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-05 21:57:41 +02:00

* Style fixes.

This commit is contained in:
Christian Muehlhaeuser
2012-07-03 03:13:55 +02:00
parent b0c14d6217
commit 2278f5d668

View File

@@ -28,25 +28,28 @@
using namespace Tomahawk; using namespace Tomahawk;
CustomPlaylistView::CustomPlaylistView( CustomPlaylistView::PlaylistType type, const source_ptr& s, QWidget* parent ) CustomPlaylistView::CustomPlaylistView( CustomPlaylistView::PlaylistType type, const source_ptr& s, QWidget* parent )
: PlaylistView ( parent ) : PlaylistView( parent )
, m_type( type ) , m_type( type )
, m_source( s ) , m_source( s )
, m_model( new PlaylistModel( this ) ) , m_model( new PlaylistModel( this ) )
{ {
// Generate the tracks, add them to the playlist // Generate the tracks, add them to the playlist
proxyModel()->setStyle( PlayableProxyModel::Large ); proxyModel()->setStyle( PlayableProxyModel::Large );
setPlaylistModel( m_model ); setPlaylistModel( m_model );
generateTracks(); generateTracks();
if ( m_type == SourceLovedTracks ) if ( m_type == SourceLovedTracks )
connect( m_source.data(), SIGNAL( socialAttributesChanged( QString ) ), this, SLOT( socialAttributesChanged( QString ) ) ); {
connect( m_source.data(), SIGNAL( socialAttributesChanged( QString ) ), SLOT( socialAttributesChanged( QString ) ) );
}
else if ( m_type == TopLovedTracks ) else if ( m_type == TopLovedTracks )
{ {
connect( SourceList::instance()->getLocal().data(), SIGNAL( socialAttributesChanged( QString ) ), this, SLOT( socialAttributesChanged( QString ) ) ); connect( SourceList::instance()->getLocal().data(), SIGNAL( socialAttributesChanged( QString ) ), SLOT( socialAttributesChanged( QString ) ) );
foreach ( const source_ptr& s, SourceList::instance()->sources( true ) ) foreach ( const source_ptr& s, SourceList::instance()->sources( true ) )
connect( s.data(), SIGNAL( socialAttributesChanged( QString ) ), this, SLOT( socialAttributesChanged( QString ) ) ); connect( s.data(), SIGNAL( socialAttributesChanged( QString ) ), SLOT( socialAttributesChanged( QString ) ) );
connect( SourceList::instance(), SIGNAL( sourceAdded( Tomahawk::source_ptr ) ), this, SLOT( sourceAdded( Tomahawk::source_ptr ) ) ); connect( SourceList::instance(), SIGNAL( sourceAdded( Tomahawk::source_ptr ) ), SLOT( sourceAdded( Tomahawk::source_ptr ) ) );
} }
} }