mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 15:59:42 +01:00
* Fixed now playing indicator when playing from SearchWidgets.
This commit is contained in:
parent
67f17102ee
commit
5f157a4f78
@ -22,6 +22,7 @@
|
||||
|
||||
#include "SourceList.h"
|
||||
#include "ViewManager.h"
|
||||
#include "audio/AudioEngine.h"
|
||||
#include "playlist/PlayableModel.h"
|
||||
#include "playlist/PlaylistModel.h"
|
||||
#include "utils/AnimatedSpinner.h"
|
||||
@ -311,3 +312,25 @@ SearchWidget::pixmap() const
|
||||
{
|
||||
return TomahawkUtils::defaultPixmap( TomahawkUtils::Search );
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SearchWidget::isBeingPlayed() const
|
||||
{
|
||||
if ( ui->resultsView->playlistInterface() == AudioEngine::instance()->currentTrackPlaylist() )
|
||||
return true;
|
||||
if ( ui->resultsView->playlistInterface()->hasChildInterface( AudioEngine::instance()->currentTrackPlaylist() ) )
|
||||
return true;
|
||||
|
||||
if ( ui->albumView->playlistInterface() == AudioEngine::instance()->currentTrackPlaylist() )
|
||||
return true;
|
||||
if ( ui->albumView->playlistInterface()->hasChildInterface( AudioEngine::instance()->currentTrackPlaylist() ) )
|
||||
return true;
|
||||
|
||||
if ( ui->artistView->playlistInterface() == AudioEngine::instance()->currentTrackPlaylist() )
|
||||
return true;
|
||||
if ( ui->artistView->playlistInterface()->hasChildInterface( AudioEngine::instance()->currentTrackPlaylist() ) )
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
@ -55,6 +55,7 @@ public:
|
||||
virtual QPixmap pixmap() const;
|
||||
|
||||
virtual bool showInfoBar() const { return true; }
|
||||
virtual bool isBeingPlayed() const;
|
||||
virtual bool isTemporaryPage() const { return true; }
|
||||
virtual bool jumpToCurrentTrack();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user