[libcalamaresui] Remove under-used function
This commit is contained in:
parent
704e250664
commit
880c367d64
@ -223,15 +223,6 @@ defaultFontHeight()
|
||||
}
|
||||
|
||||
|
||||
QFont
|
||||
defaultFont()
|
||||
{
|
||||
QFont f;
|
||||
f.setPointSize( defaultFontSize() );
|
||||
return f;
|
||||
}
|
||||
|
||||
|
||||
QFont
|
||||
largeFont()
|
||||
{
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user