Commit ec2fc5a7 authored by Adriaan de Groot's avatar Adriaan de Groot

[libcalamaresui] Better default font size

- Previously, unless setDefaultFontSize() was called explicitly,
  the default size would be 0, leading to unexpected and weird
  displays (and a warning on stderr).
- If setDefaultFontSize() is not called, get a sensible size instead
  (like defaultFontHeight() was already trying to do).
parent 8db8752a
......@@ -207,6 +207,10 @@ unmarginLayout( QLayout* layout )
if ( s_defaultFontSize <= 0 )
s_defaultFontSize = QFont().pointSize();
return s_defaultFontSize;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment