mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 02:15:36 -04: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>
|
#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 LAYOUT_MARGIN = 8;
|
||||||
static const int CORNER_RADIUS = 3;
|
static const int CORNER_RADIUS = 3;
|
||||||
static const int EXTENDED_PARTITION_MARGIN = 4;
|
static const int EXTENDED_PARTITION_MARGIN = 4;
|
||||||
|
@ -289,7 +289,9 @@ PartitionPreview::sizeForAllLabels( int maxLineWidth ) const
|
||||||
foreach ( const QModelIndex& index, indexesToDraw )
|
foreach ( const QModelIndex& index, indexesToDraw )
|
||||||
{
|
{
|
||||||
QStringList texts = { index.data().toString(),
|
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 );
|
QSize labelSize = sizeForLabel( texts );
|
||||||
|
|
||||||
if ( lineLength + labelSize.width() > maxLineWidth )
|
if ( lineLength + labelSize.width() > maxLineWidth )
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
#include <QStyleOption>
|
#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 CORNER_RADIUS = 3;
|
||||||
static const int EXTENDED_PARTITION_MARGIN = 4;
|
static const int EXTENDED_PARTITION_MARGIN = 4;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue