mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-02 20:05:37 -04:00
Fix sizeHint calculation, useless padding is useless.
This commit is contained in:
parent
ccc93d2c64
commit
78808251b9
1 changed files with 1 additions and 2 deletions
|
@ -329,8 +329,7 @@ PartitionPreview::sizeForLabel( const QStringList& text ) const
|
||||||
foreach ( const QString& textLine, text )
|
foreach ( const QString& textLine, text )
|
||||||
{
|
{
|
||||||
QSize textSize = fontMetrics().size( Qt::TextSingleLine, textLine );
|
QSize textSize = fontMetrics().size( Qt::TextSingleLine, textLine );
|
||||||
if ( vertOffset == 0 )
|
|
||||||
vertOffset = textSize.height() / 2;
|
|
||||||
vertOffset += textSize.height();
|
vertOffset += textSize.height();
|
||||||
width = qMax( width, textSize.width() );
|
width = qMax( width, textSize.width() );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue