mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-25 11:25:48 -05:00
[welcome] Give the result-display somre more space
This commit is contained in:
parent
e5036da084
commit
7650795f48
1 changed files with 3 additions and 3 deletions
|
@ -71,11 +71,11 @@ ResultDelegate::sizeHint( const QStyleOptionViewItem& option, const QModelIndex&
|
|||
|
||||
font.setPointSize( item_fontsize() );
|
||||
QFontMetrics fm( font );
|
||||
int height = fm.height();
|
||||
|
||||
height += 2 * item_margin;
|
||||
const int height = fm.height() + 2 * item_margin;
|
||||
int textwidth = fm.boundingRect( index.data( Calamares::RequirementsModel::NegatedText ).toString() ).width();
|
||||
|
||||
return QSize( option.rect.width(), height );
|
||||
return QSize( qMax( option.rect.width(), textwidth ), height );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue