mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 03:10:12 +02:00
Update PlaylistInterface slot signatures
This commit is contained in:
@@ -106,8 +106,8 @@ TopBar::TopBar( QWidget* parent )
|
||||
connect( ViewManager::instance(), SIGNAL( filterAvailable( bool ) ),
|
||||
SLOT( setFilterVisible( bool ) ) );
|
||||
|
||||
connect( ViewManager::instance(), SIGNAL( modeChanged( PlaylistInterface::ViewMode ) ),
|
||||
SLOT( onModeChanged( PlaylistInterface::ViewMode ) ) );
|
||||
connect( ViewManager::instance(), SIGNAL( modeChanged( Tomahawk::PlaylistInterface::ViewMode ) ),
|
||||
SLOT( onModeChanged( Tomahawk::PlaylistInterface::ViewMode ) ) );
|
||||
}
|
||||
|
||||
|
||||
@@ -290,20 +290,20 @@ TopBar::setFilter( const QString& filter )
|
||||
|
||||
|
||||
void
|
||||
TopBar::onModeChanged( PlaylistInterface::ViewMode mode )
|
||||
TopBar::onModeChanged( Tomahawk::PlaylistInterface::ViewMode mode )
|
||||
{
|
||||
qDebug() << Q_FUNC_INFO << mode;
|
||||
switch ( mode )
|
||||
{
|
||||
case PlaylistInterface::Flat:
|
||||
case Tomahawk::PlaylistInterface::Flat:
|
||||
onFlatMode();
|
||||
break;
|
||||
|
||||
case PlaylistInterface::Tree:
|
||||
case Tomahawk::PlaylistInterface::Tree:
|
||||
onArtistMode();
|
||||
break;
|
||||
|
||||
case PlaylistInterface::Album:
|
||||
case Tomahawk::PlaylistInterface::Album:
|
||||
onAlbumMode();
|
||||
break;
|
||||
|
||||
|
@@ -122,7 +122,7 @@ ViewManager::ViewManager( QObject* parent )
|
||||
m_widget->layout()->setMargin( 0 );
|
||||
m_widget->layout()->setSpacing( 0 );
|
||||
|
||||
connect( AudioEngine::instance(), SIGNAL( playlistChanged( PlaylistInterface* ) ), this, SLOT( playlistInterfaceChanged( PlaylistInterface* ) ) );
|
||||
connect( AudioEngine::instance(), SIGNAL( playlistChanged( Tomahawk::PlaylistInterface* ) ), this, SLOT( playlistInterfaceChanged( Tomahawk::PlaylistInterface* ) ) );
|
||||
|
||||
connect( &m_filterTimer, SIGNAL( timeout() ), SLOT( applyFilter() ) );
|
||||
|
||||
@@ -425,7 +425,7 @@ ViewManager::showSuperCollection()
|
||||
}
|
||||
|
||||
void
|
||||
ViewManager::playlistInterfaceChanged( PlaylistInterface* interface )
|
||||
ViewManager::playlistInterfaceChanged( Tomahawk::PlaylistInterface* interface )
|
||||
{
|
||||
playlist_ptr pl = playlistForInterface( interface );
|
||||
if ( !pl.isNull() )
|
||||
@@ -649,8 +649,8 @@ ViewManager::unlinkPlaylist()
|
||||
disconnect( currentPlaylistInterface()->object(), SIGNAL( trackCountChanged( unsigned int ) ),
|
||||
this, SIGNAL( numShownChanged( unsigned int ) ) );
|
||||
|
||||
disconnect( currentPlaylistInterface()->object(), SIGNAL( repeatModeChanged( PlaylistInterface::RepeatMode ) ),
|
||||
this, SIGNAL( repeatModeChanged( PlaylistInterface::RepeatMode ) ) );
|
||||
disconnect( currentPlaylistInterface()->object(), SIGNAL( repeatModeChanged( Tomahawk::PlaylistInterface::RepeatMode ) ),
|
||||
this, SIGNAL( repeatModeChanged( Tomahawk::PlaylistInterface::RepeatMode ) ) );
|
||||
|
||||
disconnect( currentPlaylistInterface()->object(), SIGNAL( shuffleModeChanged( bool ) ),
|
||||
this, SIGNAL( shuffleModeChanged( bool ) ) );
|
||||
@@ -687,8 +687,8 @@ ViewManager::updateView()
|
||||
connect( currentPlaylistInterface()->object(), SIGNAL( trackCountChanged( unsigned int ) ),
|
||||
SIGNAL( numShownChanged( unsigned int ) ) );
|
||||
|
||||
connect( currentPlaylistInterface()->object(), SIGNAL( repeatModeChanged( PlaylistInterface::RepeatMode ) ),
|
||||
SIGNAL( repeatModeChanged( PlaylistInterface::RepeatMode ) ) );
|
||||
connect( currentPlaylistInterface()->object(), SIGNAL( repeatModeChanged( Tomahawk::PlaylistInterface::RepeatMode ) ),
|
||||
SIGNAL( repeatModeChanged( Tomahawk::PlaylistInterface::RepeatMode ) ) );
|
||||
|
||||
connect( currentPlaylistInterface()->object(), SIGNAL( shuffleModeChanged( bool ) ),
|
||||
SIGNAL( shuffleModeChanged( bool ) ) );
|
||||
@@ -788,7 +788,7 @@ ViewManager::onWidgetDestroyed( QWidget* widget )
|
||||
|
||||
|
||||
void
|
||||
ViewManager::setRepeatMode( PlaylistInterface::RepeatMode mode )
|
||||
ViewManager::setRepeatMode( Tomahawk::PlaylistInterface::RepeatMode mode )
|
||||
{
|
||||
if ( currentPlaylistInterface() )
|
||||
currentPlaylistInterface()->setRepeatMode( mode );
|
||||
@@ -842,7 +842,7 @@ ViewManager::pageForPlaylist(const playlist_ptr& pl) const
|
||||
|
||||
|
||||
ViewPage*
|
||||
ViewManager::pageForInterface( PlaylistInterface* interface ) const
|
||||
ViewManager::pageForInterface( Tomahawk::PlaylistInterface* interface ) const
|
||||
{
|
||||
for ( int i = 0; i < m_pageHistory.count(); i++ )
|
||||
{
|
||||
@@ -899,7 +899,7 @@ ViewManager::setHistoryPosition( int position )
|
||||
|
||||
|
||||
Tomahawk::playlist_ptr
|
||||
ViewManager::playlistForInterface( PlaylistInterface* interface ) const
|
||||
ViewManager::playlistForInterface( Tomahawk::PlaylistInterface* interface ) const
|
||||
{
|
||||
foreach ( PlaylistView* view, m_playlistViews.values() )
|
||||
{
|
||||
@@ -914,7 +914,7 @@ ViewManager::playlistForInterface( PlaylistInterface* interface ) const
|
||||
|
||||
|
||||
Tomahawk::dynplaylist_ptr
|
||||
ViewManager::dynamicPlaylistForInterface( PlaylistInterface* interface ) const
|
||||
ViewManager::dynamicPlaylistForInterface( Tomahawk::PlaylistInterface* interface ) const
|
||||
{
|
||||
foreach ( DynamicWidget* view, m_dynamicWidgets.values() )
|
||||
{
|
||||
@@ -929,7 +929,7 @@ ViewManager::dynamicPlaylistForInterface( PlaylistInterface* interface ) const
|
||||
|
||||
|
||||
Tomahawk::collection_ptr
|
||||
ViewManager::collectionForInterface( PlaylistInterface* interface ) const
|
||||
ViewManager::collectionForInterface( Tomahawk::PlaylistInterface* interface ) const
|
||||
{
|
||||
foreach ( CollectionView* view, m_collectionViews.values() )
|
||||
{
|
||||
|
@@ -27,14 +27,14 @@ using namespace Tomahawk;
|
||||
|
||||
WelcomePlaylistModel::WelcomePlaylistModel( QObject* parent )
|
||||
: QAbstractListModel( parent )
|
||||
, m_waitingForSome( true )
|
||||
, m_maxPlaylists( 0 )
|
||||
, m_waitingForSome( true )
|
||||
{
|
||||
loadFromSettings();
|
||||
|
||||
connect( SourceList::instance(), SIGNAL( sourceAdded( Tomahawk::source_ptr ) ), this, SLOT( onSourceAdded( Tomahawk::source_ptr ) ), Qt::QueuedConnection );
|
||||
connect( TomahawkSettings::instance(), SIGNAL( recentlyPlayedPlaylistAdded( Tomahawk::playlist_ptr ) ), this, SLOT( plAdded( Tomahawk::playlist_ptr ) ) );
|
||||
connect( AudioEngine::instance(),SIGNAL( playlistChanged( PlaylistInterface* ) ), this, SLOT( playlistChanged( PlaylistInterface* ) ), Qt::QueuedConnection );
|
||||
connect( AudioEngine::instance(),SIGNAL( playlistChanged( Tomahawk::PlaylistInterface* ) ), this, SLOT( playlistChanged( Tomahawk::PlaylistInterface* ) ), Qt::QueuedConnection );
|
||||
|
||||
emit emptinessChanged( m_recplaylists.isEmpty() );
|
||||
}
|
||||
@@ -157,7 +157,7 @@ WelcomePlaylistModel::plAdded( const playlist_ptr& pl )
|
||||
}
|
||||
|
||||
void
|
||||
WelcomePlaylistModel::playlistChanged( PlaylistInterface* pli )
|
||||
WelcomePlaylistModel::playlistChanged( Tomahawk::PlaylistInterface* pli )
|
||||
{
|
||||
// ARG
|
||||
if( Playlist* pl = dynamic_cast< Playlist* >( pli ) ) {
|
||||
|
@@ -64,7 +64,7 @@ WelcomeWidget::WelcomeWidget( QWidget* parent )
|
||||
connect( SourceList::instance(), SIGNAL( sourceAdded( Tomahawk::source_ptr ) ), SLOT( onSourceAdded( Tomahawk::source_ptr ) ) );
|
||||
|
||||
connect( ui->playlistWidget, SIGNAL( activated( QModelIndex ) ), SLOT( onPlaylistActivated( QModelIndex ) ) );
|
||||
connect( AudioEngine::instance() ,SIGNAL( playlistChanged( PlaylistInterface* ) ), this, SLOT( updatePlaylists() ), Qt::QueuedConnection );
|
||||
connect( AudioEngine::instance() ,SIGNAL( playlistChanged( Tomahawk::PlaylistInterface* ) ), this, SLOT( updatePlaylists() ), Qt::QueuedConnection );
|
||||
}
|
||||
|
||||
|
||||
|
@@ -277,8 +277,8 @@ void
|
||||
TomahawkWindow::setupSignals()
|
||||
{
|
||||
// <From PlaylistManager>
|
||||
connect( ViewManager::instance(), SIGNAL( repeatModeChanged( PlaylistInterface::RepeatMode ) ),
|
||||
m_audioControls, SLOT( onRepeatModeChanged( PlaylistInterface::RepeatMode ) ) );
|
||||
connect( ViewManager::instance(), SIGNAL( repeatModeChanged( Tomahawk::PlaylistInterface::RepeatMode ) ),
|
||||
m_audioControls, SLOT( onRepeatModeChanged( Tomahawk::PlaylistInterface::RepeatMode ) ) );
|
||||
|
||||
connect( ViewManager::instance(), SIGNAL( shuffleModeChanged( bool ) ),
|
||||
m_audioControls, SLOT( onShuffleModeChanged( bool ) ) );
|
||||
|
Reference in New Issue
Block a user