[libcalamaresui] Remove under-used function

This commit is contained in:
Adriaan de Groot 2022-04-27 14:42:41 +02:00
parent 704e250664
commit 880c367d64
3 changed files with 1 additions and 11 deletions

View File

@ -223,15 +223,6 @@ defaultFontHeight()
}
QFont
defaultFont()
{
QFont f;
f.setPointSize( defaultFontSize() );
return f;
}
QFont
largeFont()
{

View File

@ -98,7 +98,6 @@ UIDLLEXPORT void unmarginLayout( QLayout* layout );
UIDLLEXPORT void setDefaultFontSize( int points );
UIDLLEXPORT int defaultFontSize(); // in points
UIDLLEXPORT int defaultFontHeight(); // in pixels, DPI-specific
UIDLLEXPORT QFont defaultFont(); // TODO:3.3:This has one consumer, move to BlankViewStep
UIDLLEXPORT QFont largeFont();
UIDLLEXPORT QSize defaultIconSize();

View File

@ -29,7 +29,7 @@
using namespace CalamaresUtils::Units;
static const int LAYOUT_MARGIN = 4;
static const int LABEL_PARTITION_SQUARE_MARGIN = qMax( QFontMetrics( CalamaresUtils::defaultFont() ).ascent() - 2, 18 );
static const int LABEL_PARTITION_SQUARE_MARGIN = qMax( CalamaresUtils::defaultFontHeight() - 2, 18 );
static const int LABELS_MARGIN = LABEL_PARTITION_SQUARE_MARGIN;
static const int CORNER_RADIUS = 2;