mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 09:25:36 -04:00
Add some spacing between label view item rows.
This commit is contained in:
parent
0af434bfc1
commit
fe4cf3c4ec
1 changed files with 3 additions and 2 deletions
|
@ -205,7 +205,7 @@ PartitionLabelsView::drawLabels( QPainter* painter,
|
||||||
if ( label_x + labelSize.width() > rect.width() ) //wrap to new line if overflow
|
if ( label_x + labelSize.width() > rect.width() ) //wrap to new line if overflow
|
||||||
{
|
{
|
||||||
label_x = rect.x();
|
label_x = rect.x();
|
||||||
label_y += labelSize.height();
|
label_y += labelSize.height() + labelSize.height() / 4;
|
||||||
}
|
}
|
||||||
drawLabel( painter, texts, labelColor, QPoint( label_x, label_y ) );
|
drawLabel( painter, texts, labelColor, QPoint( label_x, label_y ) );
|
||||||
|
|
||||||
|
@ -261,7 +261,8 @@ PartitionLabelsView::sizeForAllLabels( int maxLineWidth ) const
|
||||||
.height();
|
.height();
|
||||||
}
|
}
|
||||||
|
|
||||||
int totalHeight = numLines * singleLabelHeight;
|
int totalHeight = numLines * singleLabelHeight +
|
||||||
|
( numLines - 1 ) * singleLabelHeight / 4; //spacings
|
||||||
|
|
||||||
return QSize( maxLineWidth, totalHeight );
|
return QSize( maxLineWidth, totalHeight );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue