1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 09:34:53 +02:00

Don't calculate height by assuming rows are same height anymore, as they are not.

This commit is contained in:
Leo Franchi
2012-02-25 20:07:33 -05:00
parent 35c4a29cbe
commit a73d1cd342

View File

@@ -106,8 +106,11 @@ JobStatusView::sizeHint() const
if ( m_view->model()->rowCount() )
{
unsigned int rowheight = m_view->sizeHintForRow( 0 );
y += rowheight * m_view->model()->rowCount() + 2;
for ( int i = 0; i < m_view->model()->rowCount(); i++ )
{
y += m_view->sizeHintForRow( i );
}
y += 2; // some padding
}
return QSize( 0, y );