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

* Show loading spinner and emptiness tooltip on track page.

This commit is contained in:
Christian Muehlhaeuser 2012-06-21 21:12:15 +02:00
parent 408bc713d7
commit 0dc1d6664a
3 changed files with 6 additions and 15 deletions

View File

@ -232,7 +232,9 @@ GridView::verifySize()
const int rows = floor( (double)m_model->rowCount( QModelIndex() ) / (double)itemsPerRow );
const int newHeight = rows * m_model->itemSize().height();
setFixedHeight( newHeight );
if ( newHeight > 0 )
setFixedHeight( newHeight );
m_proxyModel->setMaxVisibleItems( m_model->rowCount( QModelIndex() ) - overlapRows );
}

View File

@ -186,7 +186,8 @@ TrackInfoWidget::load( const query_ptr& query )
ui->albumLabel->setVisible( !query->album().isEmpty() );
m_relatedTracksModel->clear();
m_relatedTracksModel->startLoading();
if ( !m_query->similarTracks().isEmpty() )
onSimilarTracksLoaded();
}
@ -244,6 +245,7 @@ void
TrackInfoWidget::onSimilarTracksLoaded()
{
m_relatedTracksModel->append( m_query->similarTracks() );
m_relatedTracksModel->finishLoading();
}

View File

@ -103,19 +103,6 @@
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>