diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-03-30 20:42:46 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-30 13:58:10 -0700 |
commit | da740dfc19a6501009367cdabbb44691a81aacfa (patch) | |
tree | d3ce26595941ad547ddba796cbc07bf7d241b944 /mobile-widgets/themeinterface.cpp | |
parent | 45a3fff62c00b48e392b83cda8e5dd5fba9af8bb (diff) | |
download | subsurface-da740dfc19a6501009367cdabbb44691a81aacfa.tar.gz |
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>
Diffstat (limited to 'mobile-widgets/themeinterface.cpp')
-rw-r--r-- | mobile-widgets/themeinterface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mobile-widgets/themeinterface.cpp b/mobile-widgets/themeinterface.cpp index 9e522b936..28de58828 100644 --- a/mobile-widgets/themeinterface.cpp +++ b/mobile-widgets/themeinterface.cpp @@ -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(); |