mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 00:09:47 +01:00
* Using contentsMargins() to calculate the view height seems better.
This commit is contained in:
parent
ccea2fdbed
commit
3fb7b1ced0
@ -803,7 +803,8 @@ TrackView::verifySize()
|
||||
return;
|
||||
|
||||
if ( m_proxyModel->rowCount() > 0 )
|
||||
setFixedHeight( m_proxyModel->rowCount() * m_delegate->sizeHint( QStyleOptionViewItem(), m_proxyModel->index( 0, 0 ) ).height() + frameWidth() * 2 );
|
||||
setFixedHeight( m_proxyModel->rowCount() * m_delegate->sizeHint( QStyleOptionViewItem(), m_proxyModel->index( 0, 0 ) ).height() +
|
||||
contentsMargins().top() + contentsMargins().bottom() );
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user