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:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user