1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-19 15:29:42 +01:00

* Style fixes in WhatsHotWidget.

This commit is contained in:
Christian Muehlhaeuser 2012-12-23 17:24:39 +01:00
parent 4629372c97
commit 203f38cf2d
2 changed files with 3 additions and 5 deletions

View File

@ -123,7 +123,7 @@ WhatsHotWidget::~WhatsHotWidget()
{
qDebug() << "Deleting whatshot";
// Write the settings
qDebug() << "Writing chartIds to settings: " << m_currentVIds;
qDebug() << "Writing chartIds to settings:" << m_currentVIds;
TomahawkSettings::instance()->setLastChartIds( m_currentVIds );
qDeleteAll( m_workers );
m_workers.clear();
@ -175,7 +175,6 @@ WhatsHotWidget::jumpToCurrentTrack()
void
WhatsHotWidget::fetchData()
{
Tomahawk::InfoSystem::InfoStringHash criteria;
Tomahawk::InfoSystem::InfoRequestData requestData;
@ -384,7 +383,6 @@ WhatsHotWidget::infoSystemFinished( QString target )
void
WhatsHotWidget::leftCrumbIndexChanged( QModelIndex index )
{
tDebug( LOGVERBOSE ) << "WhatsHot: left crumb changed" << index.data();
QStandardItem* item = m_crumbModelLeft->itemFromIndex( m_sortedProxy->mapToSource( index ) );
if ( !item )
@ -530,13 +528,13 @@ WhatsHotWidget::parseNode( QStandardItem* parentItem, const QString &label, cons
return sourceItem;
}
void
WhatsHotWidget::setLeftViewAlbums( PlayableModel* model )
{
ui->albumsView->setPlayableModel( model );
ui->albumsView->proxyModel()->sort( -1 ); // disable sorting, must be called after artistsViewLeft->setTreeModel
ui->stackLeft->setCurrentIndex( 2 );
}

View File

@ -97,8 +97,8 @@ private:
void setLeftViewAlbums( PlayableModel* albumModel );
void setLeftViewTracks( PlaylistModel* trackModel );
QStandardItem* parseNode( QStandardItem* parentItem, const QString &label, const QVariant &data );
Ui::WhatsHotWidget *ui;
Tomahawk::playlistinterface_ptr m_playlistInterface;