mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-10 08:04:25 +02:00
* Style fixes in WhatsHotWidget.
This commit is contained in:
@@ -123,7 +123,7 @@ WhatsHotWidget::~WhatsHotWidget()
|
|||||||
{
|
{
|
||||||
qDebug() << "Deleting whatshot";
|
qDebug() << "Deleting whatshot";
|
||||||
// Write the settings
|
// Write the settings
|
||||||
qDebug() << "Writing chartIds to settings: " << m_currentVIds;
|
qDebug() << "Writing chartIds to settings:" << m_currentVIds;
|
||||||
TomahawkSettings::instance()->setLastChartIds( m_currentVIds );
|
TomahawkSettings::instance()->setLastChartIds( m_currentVIds );
|
||||||
qDeleteAll( m_workers );
|
qDeleteAll( m_workers );
|
||||||
m_workers.clear();
|
m_workers.clear();
|
||||||
@@ -175,7 +175,6 @@ WhatsHotWidget::jumpToCurrentTrack()
|
|||||||
void
|
void
|
||||||
WhatsHotWidget::fetchData()
|
WhatsHotWidget::fetchData()
|
||||||
{
|
{
|
||||||
|
|
||||||
Tomahawk::InfoSystem::InfoStringHash criteria;
|
Tomahawk::InfoSystem::InfoStringHash criteria;
|
||||||
|
|
||||||
Tomahawk::InfoSystem::InfoRequestData requestData;
|
Tomahawk::InfoSystem::InfoRequestData requestData;
|
||||||
@@ -384,7 +383,6 @@ WhatsHotWidget::infoSystemFinished( QString target )
|
|||||||
void
|
void
|
||||||
WhatsHotWidget::leftCrumbIndexChanged( QModelIndex index )
|
WhatsHotWidget::leftCrumbIndexChanged( QModelIndex index )
|
||||||
{
|
{
|
||||||
|
|
||||||
tDebug( LOGVERBOSE ) << "WhatsHot: left crumb changed" << index.data();
|
tDebug( LOGVERBOSE ) << "WhatsHot: left crumb changed" << index.data();
|
||||||
QStandardItem* item = m_crumbModelLeft->itemFromIndex( m_sortedProxy->mapToSource( index ) );
|
QStandardItem* item = m_crumbModelLeft->itemFromIndex( m_sortedProxy->mapToSource( index ) );
|
||||||
if ( !item )
|
if ( !item )
|
||||||
@@ -530,13 +528,13 @@ WhatsHotWidget::parseNode( QStandardItem* parentItem, const QString &label, cons
|
|||||||
return sourceItem;
|
return sourceItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
WhatsHotWidget::setLeftViewAlbums( PlayableModel* model )
|
WhatsHotWidget::setLeftViewAlbums( PlayableModel* model )
|
||||||
{
|
{
|
||||||
ui->albumsView->setPlayableModel( model );
|
ui->albumsView->setPlayableModel( model );
|
||||||
ui->albumsView->proxyModel()->sort( -1 ); // disable sorting, must be called after artistsViewLeft->setTreeModel
|
ui->albumsView->proxyModel()->sort( -1 ); // disable sorting, must be called after artistsViewLeft->setTreeModel
|
||||||
ui->stackLeft->setCurrentIndex( 2 );
|
ui->stackLeft->setCurrentIndex( 2 );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -97,8 +97,8 @@ private:
|
|||||||
void setLeftViewAlbums( PlayableModel* albumModel );
|
void setLeftViewAlbums( PlayableModel* albumModel );
|
||||||
void setLeftViewTracks( PlaylistModel* trackModel );
|
void setLeftViewTracks( PlaylistModel* trackModel );
|
||||||
|
|
||||||
|
|
||||||
QStandardItem* parseNode( QStandardItem* parentItem, const QString &label, const QVariant &data );
|
QStandardItem* parseNode( QStandardItem* parentItem, const QString &label, const QVariant &data );
|
||||||
|
|
||||||
Ui::WhatsHotWidget *ui;
|
Ui::WhatsHotWidget *ui;
|
||||||
Tomahawk::playlistinterface_ptr m_playlistInterface;
|
Tomahawk::playlistinterface_ptr m_playlistInterface;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user