From abeee23995cdb87bb636ec5c38999f60f0166c4d Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sun, 7 Sep 2014 18:10:27 +0200 Subject: [PATCH] * Remove obsolete stuff. --- src/libtomahawk/widgets/SearchWidget.cpp | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/src/libtomahawk/widgets/SearchWidget.cpp b/src/libtomahawk/widgets/SearchWidget.cpp index 20c116c36..e420a66f2 100644 --- a/src/libtomahawk/widgets/SearchWidget.cpp +++ b/src/libtomahawk/widgets/SearchWidget.cpp @@ -148,8 +148,6 @@ SearchWidget::SearchWidget( const QString& search, QWidget* parent ) } { GridView* artistsFullView = new GridView(); - // artistsFullView->setCaption( tr( "Artists" ) ); - // artistsFullView->setShowCloseButton( true ); artistsFullView->setPlayableModel( m_artistsModel ); CaptionLabel* captionLabel = new CaptionLabel( this ); @@ -179,8 +177,6 @@ SearchWidget::SearchWidget( const QString& search, QWidget* parent ) } { GridView* albumsFullView = new GridView( m_stackedWidget ); -// albumsFullView->setCaption( tr( "Albums" ) ); -// albumsFullView->setShowCloseButton( true ); albumsFullView->setPlayableModel( m_albumsModel ); CaptionLabel* captionLabel = new CaptionLabel( this ); @@ -223,18 +219,13 @@ SearchWidget::SearchWidget( const QString& search, QWidget* parent ) mpl->addChildInterface( ui->albums->playlistInterface() ); m_plInterface = playlistinterface_ptr( mpl ); -// ui->albumView->proxyModel()->sort( -1 ); -// ui->albumView->proxyModel()->setHideDupeItems( true ); - -// ui->artistView->proxyModel()->sort( -1 ); -// ui->artistView->proxyModel()->setHideDupeItems( true ); + headerWidget->setCaption( title() ); m_artistsModel->startLoading(); m_albumsModel->startLoading(); m_resultsModel->startLoading(); m_queries << Tomahawk::Query::get( search, uuid() ); - headerWidget->setCaption( title() ); foreach ( const Tomahawk::query_ptr& query, m_queries ) { @@ -419,12 +410,12 @@ SearchWidget::onQueryFinished() { tDebug() << Q_FUNC_INFO; + updateArtists(); + updateAlbums(); + m_artistsModel->finishLoading(); m_albumsModel->finishLoading(); m_resultsModel->finishLoading(); - - updateArtists(); - updateAlbums(); }