qt6-bb10/tests/auto/gui/kernel/qguivariant
Eskil Abrahamsen Blomfeldt 1d14067680 Fix weight when reading old serialized QFonts
The QFont::fromString() needs to differ between strings
produced before and after Qt 6.0 when interpreting the
weight value, since in older strings this will be the legacy
scale.

Luckily the number of tokens in the string can be used for this
purpose, since many tokens were added in Qt 6.0.

This broke KDE, where font settings are stored in QSettings
and serialized using QFont::toString() from Qt 5.

Fixes: QTBUG-88589
Pick-to: 6.0.0 6.0
Change-Id: I199737fed61917f8b9d8f86176ead29a89eb8e0c
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
2020-11-20 20:29:00 +00:00
..
no_application CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
test Fix weight when reading old serialized QFonts 2020-11-20 20:29:00 +00:00
.gitignore
CMakeLists.txt
qguivariant.pro