qt6-bb10/tests/auto
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
..
cmake CMake: Add support for -binary option for generated resources 2020-11-12 22:11:37 +01:00
concurrent Automatically generate unit tests for QtConcurrent 2020-11-09 16:01:33 +01:00
corelib Android: exclude qarraydata::dataPointerAllocate() from CI tests 2020-11-20 21:38:02 +02:00
dbus QChar: make construction from integral explicit 2020-11-15 14:41:05 +01:00
gui Fix weight when reading old serialized QFonts 2020-11-20 20:29:00 +00:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
installed_cmake
network tst_qocsp: improve code coverage 2020-11-20 14:46:33 +01:00
opengl Remove tst_QGL 2020-08-28 11:43:11 +02:00
other Network self-test: make it work with docker/containers 2020-11-17 19:56:06 +01:00
printsupport Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
shared Remove most compiler warnings about missing overrides 2020-09-11 00:20:47 +02:00
sql Cleanup remaining QVariant::Type uses in Qt Sql 2020-10-17 12:01:54 +02:00
testlib QSignalSpy: Use QMetaType instead of metatype id in initArgs 2020-11-10 11:23:55 +01:00
tools Android: exclude host tools tests for android and ios 2020-11-16 11:35:33 +00:00
widgets QFont: Prefer setFamilies() over setFamily() 2020-11-20 14:30:22 +01:00
xml QChar: make construction from integral explicit 2020-11-15 14:41:05 +01:00
.prev_CMakeLists.txt CMake: Regenerate projects 2020-09-22 19:08:53 +02:00
CMakeLists.txt CMake: Fix building with -DQT_FEATURE_gui=OFF 2020-09-15 20:05:32 +02:00
auto.pro Don't error out when configuring Qt on a headless system 2020-09-26 14:36:13 +02:00
network-settings.h Network self-test: make it work with docker/containers 2020-11-17 19:56:06 +01:00