mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 10:55:46 -05:00
Fixup preview height.
This commit is contained in:
parent
84c254ced2
commit
83cbe16918
2 changed files with 5 additions and 3 deletions
|
@ -33,7 +33,7 @@
|
|||
|
||||
#include <functional>
|
||||
|
||||
static const int VIEW_HEIGHT = CalamaresUtils::defaultFontHeight() * 1.5;
|
||||
static const int VIEW_HEIGHT = CalamaresUtils::defaultFontHeight() + 8;
|
||||
static const int LAYOUT_MARGIN = 8;
|
||||
static const int CORNER_RADIUS = 3;
|
||||
static const int EXTENDED_PARTITION_MARGIN = 4;
|
||||
|
@ -289,7 +289,9 @@ PartitionPreview::sizeForAllLabels( int maxLineWidth ) const
|
|||
foreach ( const QModelIndex& index, indexesToDraw )
|
||||
{
|
||||
QStringList texts = { index.data().toString(),
|
||||
index.sibling( index.row(), PartitionModel::SizeColumn ).data().toString() };
|
||||
index.sibling( index.row(),
|
||||
PartitionModel::SizeColumn )
|
||||
.data().toString() };
|
||||
QSize labelSize = sizeForLabel( texts );
|
||||
|
||||
if ( lineLength + labelSize.width() > maxLineWidth )
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include <QStyleOption>
|
||||
|
||||
|
||||
static const int VIEW_HEIGHT = CalamaresUtils::defaultFontHeight() * 1.5;
|
||||
static const int VIEW_HEIGHT = CalamaresUtils::defaultFontHeight() + 8;
|
||||
static const int CORNER_RADIUS = 3;
|
||||
static const int EXTENDED_PARTITION_MARGIN = 4;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue