mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-16 11:04:01 +02:00
more cleanup
This commit is contained in:
@@ -57,9 +57,6 @@ DynamicQmlWidget::DynamicQmlWidget( const dynplaylist_ptr& playlist, QWidget* pa
|
||||
connect( m_playlist.data(), SIGNAL( dynamicRevisionLoaded( Tomahawk::DynamicPlaylistRevision ) ), this, SLOT( onRevisionLoaded( Tomahawk::DynamicPlaylistRevision ) ) );
|
||||
connect( m_playlist->generator().data(), SIGNAL( error( QString, QString )), SLOT( error(QString,QString) ) );
|
||||
|
||||
connect( AudioEngine::instance(), SIGNAL( started( Tomahawk::result_ptr ) ), this, SLOT( trackStarted() ) );
|
||||
connect( AudioEngine::instance(), SIGNAL( playlistChanged( Tomahawk::playlistinterface_ptr ) ), this, SLOT( playlistChanged( Tomahawk::playlistinterface_ptr ) ) );
|
||||
|
||||
if (configured()) {
|
||||
m_playlist->generator()->generate( 20 );
|
||||
} else {
|
||||
@@ -237,32 +234,6 @@ void DynamicQmlWidget::resolvingFinished(bool hasResults)
|
||||
}
|
||||
}
|
||||
|
||||
void DynamicQmlWidget::trackStarted()
|
||||
{
|
||||
startStation();
|
||||
}
|
||||
|
||||
void
|
||||
DynamicQmlWidget::playlistChanged( Tomahawk::playlistinterface_ptr pl )
|
||||
{
|
||||
if ( pl != m_proxyModel->playlistInterface() ) {
|
||||
stopStation( false );
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
DynamicQmlWidget::stopStation( bool stopPlaying )
|
||||
{
|
||||
m_model->stopOnDemand( stopPlaying );
|
||||
}
|
||||
|
||||
void
|
||||
DynamicQmlWidget::startStation()
|
||||
{
|
||||
m_model->startOnDemand();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
DynamicQmlWidget::loadArtistCharts()
|
||||
{
|
||||
|
@@ -84,14 +84,9 @@ private slots:
|
||||
void error( const QString& title, const QString& body);
|
||||
|
||||
void onRevisionLoaded( Tomahawk::DynamicPlaylistRevision );
|
||||
void playlistChanged( Tomahawk::playlistinterface_ptr pl );
|
||||
|
||||
void resolvingFinished( bool hasResults );
|
||||
|
||||
void trackStarted();
|
||||
void startStation();
|
||||
void stopStation( bool stopPlaying );
|
||||
|
||||
void loadArtistCharts();
|
||||
void onArtistCharts( const QList< Tomahawk::artist_ptr >& artists );
|
||||
|
||||
|
Reference in New Issue
Block a user