diff --git a/src/libtomahawk/widgets/searchwidget.cpp b/src/libtomahawk/widgets/searchwidget.cpp index c7a547333..e8efdfbcc 100644 --- a/src/libtomahawk/widgets/searchwidget.cpp +++ b/src/libtomahawk/widgets/searchwidget.cpp @@ -1,6 +1,7 @@ /* === This file is part of Tomahawk Player - === * * Copyright 2010-2011, Christian Muehlhaeuser + * Copyright 2012 Leo Franchi * * Tomahawk is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -112,6 +113,20 @@ SearchWidget::changeEvent( QEvent* e ) } +Tomahawk::playlistinterface_ptr +SearchWidget::playlistInterface() const +{ + return ui->resultsView->playlistInterface(); +} + + +bool +SearchWidget::jumpToCurrentTrack() +{ + return ui->resultsView->jumpToCurrentTrack(); +} + + void SearchWidget::onResultsFound( const QList& results ) { diff --git a/src/libtomahawk/widgets/searchwidget.h b/src/libtomahawk/widgets/searchwidget.h index b16f3611f..2da9eeb0d 100644 --- a/src/libtomahawk/widgets/searchwidget.h +++ b/src/libtomahawk/widgets/searchwidget.h @@ -1,6 +1,7 @@ /* === This file is part of Tomahawk Player - === * * Copyright 2010-2011, Christian Muehlhaeuser + * Copyright 2012 Leo Franchi * * Tomahawk is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -46,7 +47,7 @@ public: ~SearchWidget(); virtual QWidget* widget() { return this; } - virtual Tomahawk::playlistinterface_ptr playlistInterface() const { return Tomahawk::playlistinterface_ptr(); } + virtual Tomahawk::playlistinterface_ptr playlistInterface() const; virtual bool isTemporaryPage() const { return true; } virtual QString title() const { return QString( tr( "Search: %1" ) ).arg( m_search ); } @@ -55,7 +56,7 @@ public: virtual bool showStatsBar() const { return false; } - virtual bool jumpToCurrentTrack() { return false; } + virtual bool jumpToCurrentTrack(); protected: void changeEvent( QEvent* e );