qt5base-lts/tests/auto/gui
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
..
image Allow painting above INT16_MAX on 64-bit architectures 2020-11-09 14:04:13 +01:00
itemmodels Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00
kernel Fix weight when reading old serialized QFonts 2020-11-20 20:29:00 +00:00
math3d Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
painting Get rid of Q_COMPILER_CONSTEXPR checks 2020-11-17 21:28:11 +01:00
qopengl Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00
qopenglconfig Deprecate QVariant::Type 2020-10-23 09:58:57 +02:00
qvulkan CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
rhi Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00
text Fix weight when reading old serialized QFonts 2020-11-20 20:29:00 +00:00
util Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
.prev_CMakeLists.txt Remove winrt 2020-06-06 20:25:49 +02:00
CMakeLists.txt Remove winrt 2020-06-06 20:25:49 +02:00
gui.pro Remove winrt 2020-06-06 20:25:49 +02:00