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:
@@ -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 );
|
||||
|
Reference in New Issue
Block a user