1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-18 20:04:00 +02:00

Update view sizehint when we get a custom delegate in case it is non-standard in height

This commit is contained in:
Leo Franchi
2012-05-19 18:25:10 -04:00
parent a36693bd4c
commit 067138b9ac

View File

@@ -116,6 +116,8 @@ JobStatusView::customDelegateJobInserted( int row, JobStatusItem* item )
connect( delegate, SIGNAL( aclResult( ACLRegistry::ACL ) ), item, SLOT( aclResult( ACLRegistry::ACL ) ) );
delegate->emitSizeHintChanged( m_model->index( row ) );
}
checkCount();
}
@@ -125,6 +127,8 @@ JobStatusView::customDelegateJobRemoved( int row )
if ( m_customDelegateRefCounter[ row ] == 1 )
m_view->setItemDelegateForRow( row, m_view->itemDelegate() );
m_customDelegateRefCounter[ row ] = m_customDelegateRefCounter[ row ] - 1;
checkCount();
}