void TrackWidget::showEvent(QShowEvent *) { if ( m_nowPlaying ) m_movie->start(); fetchAlbumArt(); }
void TrackWidget::setTrack( lastfm::Track& track ) { disconnect( m_track.signalProxy(), 0, this, 0 ); m_track = track; connect( m_track.signalProxy(), SIGNAL(loveToggled(bool)), SLOT(onLoveToggled(bool)) ); connect( m_track.signalProxy(), SIGNAL(scrobbleStatusChanged(short)), SLOT(onScrobbleStatusChanged())); connect( m_track.signalProxy(), SIGNAL(corrected(QString)), SLOT(onCorrected(QString))); m_movie->stop(); ui->equaliser->hide(); setTrackDetails(); ui->albumArt->setPixmap( QPixmap( ":/meta_album_no_art.png" ) ); ui->albumArt->setHref( track.www() ); m_triedFetchAlbumArt = false; fetchAlbumArt(); }