cleanup: use setPointSizeF() in themeInterface::set_currentScale()

The compiler complained that we were passing a float to the
QFont::setPointSize() function, which expects an integer.
Solve this by using the QFont::setPointSizeF() function.

This might introduce a user-visible change, albeit very unlikely:
We now may set the point-size to a non-integer number.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-03-30 20:42:46 +02:00 committed by Dirk Hohndel
parent 45a3fff62c
commit da740dfc19

View file

@ -85,7 +85,7 @@ void ThemeInterface::set_currentScale(double newScale)
}
// Set current font size
defaultModelFont().setPointSize(m_basePointSize * qPrefDisplay::mobile_scale());
defaultModelFont().setPointSizeF(m_basePointSize * qPrefDisplay::mobile_scale());
// adjust all used font sizes
m_regularPointSize = m_basePointSize * qPrefDisplay::mobile_scale();