Browse files

* Fixed playlist row's height changing height when hovering during dr…

…ag & drop operations.
  • Loading branch information...
1 parent 60f4263 commit 65dbe8b268ebe84ed9cb4a6a448d82432c3314bd @muesli muesli committed Nov 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/sourcetree/SourceDelegate.cpp
View
4 src/sourcetree/SourceDelegate.cpp
@@ -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();
}

0 comments on commit 65dbe8b

Please sign in to comment.