mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
* Fixed now playing indicator when playing from SearchWidgets.
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
#include "SourceList.h"
|
#include "SourceList.h"
|
||||||
#include "ViewManager.h"
|
#include "ViewManager.h"
|
||||||
|
#include "audio/AudioEngine.h"
|
||||||
#include "playlist/PlayableModel.h"
|
#include "playlist/PlayableModel.h"
|
||||||
#include "playlist/PlaylistModel.h"
|
#include "playlist/PlaylistModel.h"
|
||||||
#include "utils/AnimatedSpinner.h"
|
#include "utils/AnimatedSpinner.h"
|
||||||
@@ -311,3 +312,25 @@ SearchWidget::pixmap() const
|
|||||||
{
|
{
|
||||||
return TomahawkUtils::defaultPixmap( TomahawkUtils::Search );
|
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 QPixmap pixmap() const;
|
||||||
|
|
||||||
virtual bool showInfoBar() const { return true; }
|
virtual bool showInfoBar() const { return true; }
|
||||||
|
virtual bool isBeingPlayed() const;
|
||||||
virtual bool isTemporaryPage() const { return true; }
|
virtual bool isTemporaryPage() const { return true; }
|
||||||
virtual bool jumpToCurrentTrack();
|
virtual bool jumpToCurrentTrack();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user