mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Using contentsMargins() to calculate the view height seems better.
This commit is contained in:
@@ -803,7 +803,8 @@ TrackView::verifySize()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if ( m_proxyModel->rowCount() > 0 )
|
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() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user