Fix sizeHint calculation, useless padding is useless.
This commit is contained in:
parent
ccc93d2c64
commit
78808251b9
@ -329,8 +329,7 @@ PartitionPreview::sizeForLabel( const QStringList& text ) const
|
||||
foreach ( const QString& textLine, text )
|
||||
{
|
||||
QSize textSize = fontMetrics().size( Qt::TextSingleLine, textLine );
|
||||
if ( vertOffset == 0 )
|
||||
vertOffset = textSize.height() / 2;
|
||||
|
||||
vertOffset += textSize.height();
|
||||
width = qMax( width, textSize.width() );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user