1
0
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:
Christian Muehlhaeuser 2013-09-07 19:07:11 +02:00
parent ccea2fdbed
commit 3fb7b1ced0

View File

@ -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() );
}