mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 17:43:59 +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() )
|
if ( m_view->model()->rowCount() )
|
||||||
{
|
{
|
||||||
unsigned int rowheight = m_view->sizeHintForRow( 0 );
|
for ( int i = 0; i < m_view->model()->rowCount(); i++ )
|
||||||
y += rowheight * m_view->model()->rowCount() + 2;
|
{
|
||||||
|
y += m_view->sizeHintForRow( i );
|
||||||
|
}
|
||||||
|
y += 2; // some padding
|
||||||
}
|
}
|
||||||
|
|
||||||
return QSize( 0, y );
|
return QSize( 0, y );
|
||||||
|
Reference in New Issue
Block a user