From 65dbe8b268ebe84ed9cb4a6a448d82432c3314bd Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Wed, 14 Nov 2012 02:39:39 +0100 Subject: [PATCH] * Fixed playlist row's height changing height when hovering during drag & drop operations. --- src/sourcetree/SourceDelegate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sourcetree/SourceDelegate.cpp b/src/sourcetree/SourceDelegate.cpp index f2efb42db..6f798af8f 100644 --- a/src/sourcetree/SourceDelegate.cpp +++ b/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(); }