mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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:
parent
45a3fff62c
commit
da740dfc19
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue