Add CalamaresUtils::defaultFont()

This commit is contained in:
Teo Mrnjavac 2015-12-02 15:40:55 +01:00
parent 93c515ccef
commit 25e388aa29
2 changed files with 10 additions and 0 deletions

View File

@ -206,6 +206,15 @@ defaultFontHeight()
} }
QFont
defaultFont()
{
QFont f;
f.setPointSize( defaultFontSize() );
return f;
}
void void
setDefaultFontSize( int points ) setDefaultFontSize( int points )
{ {

View File

@ -67,6 +67,7 @@ UIDLLEXPORT void clearLayout( QLayout* layout );
UIDLLEXPORT void setDefaultFontSize( int points ); UIDLLEXPORT void setDefaultFontSize( int points );
UIDLLEXPORT int defaultFontSize(); UIDLLEXPORT int defaultFontSize();
UIDLLEXPORT int defaultFontHeight(); UIDLLEXPORT int defaultFontHeight();
UIDLLEXPORT QFont defaultFont();
UIDLLEXPORT QSize defaultIconSize(); UIDLLEXPORT QSize defaultIconSize();
} }