1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-30 17:20:26 +02:00

* Fixed playlist row's height changing height when hovering during drag & drop operations.

This commit is contained in:
Christian Muehlhaeuser
2012-11-14 02:39:39 +01:00
parent 60f4263200
commit 65dbe8b268

View File

@@ -106,8 +106,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.2 );
QSize targetSize = originalSize + QSize( 0, dropTypes == 0 ? 0 : 38 + option.fontMetrics.height() * 1.2 );
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 );
m_expandedMap.value( index )->initialize( originalSize, targetSize, 300 );
m_expandedMap.value( index )->expand();
}