1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 19:30:21 +02:00

* Fixed row-height when showing extended map in sidebar.

This commit is contained in:
Christian Muehlhaeuser
2014-08-13 09:08:22 +02:00
parent 00c17e1003
commit acb43b2b59

View File

@@ -104,8 +104,8 @@ SourceDelegate::sizeHint( const QStyleOptionViewItem& option, const QModelIndex&
if ( !m_expandedMap.value( index )->initialized() )
{
int dropTypes = dropTypeCount( item );
QSize originalSize = QSize( option.rect.width(), option.fontMetrics.height() * 1.4 );
QSize targetSize = originalSize + QSize( 0, dropTypes == 0 ? 0 : 38 + option.fontMetrics.height() * 1.4 );
QSize originalSize = QSize( option.rect.width(), option.fontMetrics.height() * 1.8 );
QSize targetSize = originalSize + QSize( 0, dropTypes == 0 ? 0 : 38 + option.fontMetrics.height() * 1.8 );
m_expandedMap.value( index )->initialize( originalSize, targetSize, 600 );
m_expandedMap.value( index )->expand();
}