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:
@@ -116,6 +116,8 @@ JobStatusView::customDelegateJobInserted( int row, JobStatusItem* item )
|
|||||||
connect( delegate, SIGNAL( aclResult( ACLRegistry::ACL ) ), item, SLOT( aclResult( ACLRegistry::ACL ) ) );
|
connect( delegate, SIGNAL( aclResult( ACLRegistry::ACL ) ), item, SLOT( aclResult( ACLRegistry::ACL ) ) );
|
||||||
delegate->emitSizeHintChanged( m_model->index( row ) );
|
delegate->emitSizeHintChanged( m_model->index( row ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
checkCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -125,6 +127,8 @@ JobStatusView::customDelegateJobRemoved( int row )
|
|||||||
if ( m_customDelegateRefCounter[ row ] == 1 )
|
if ( m_customDelegateRefCounter[ row ] == 1 )
|
||||||
m_view->setItemDelegateForRow( row, m_view->itemDelegate() );
|
m_view->setItemDelegateForRow( row, m_view->itemDelegate() );
|
||||||
m_customDelegateRefCounter[ row ] = m_customDelegateRefCounter[ row ] - 1;
|
m_customDelegateRefCounter[ row ] = m_customDelegateRefCounter[ row ] - 1;
|
||||||
|
|
||||||
|
checkCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user