qt6-bb10/tests/auto/gui/text
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
..
qabstracttextdocumentlayout CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qcssparser Fix Qt6 todo in qcssparser 2020-09-23 17:01:29 +02:00
qfont Fix weight when reading old serialized QFonts 2020-11-20 20:29:00 +00:00
qfontcache QFont: Prefer setFamilies() over setFamily() 2020-11-20 14:30:22 +01:00
qfontdatabase Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00
qfontmetrics Get rid of all instance usage of QFontDatabase 2020-11-03 20:36:34 +01:00
qglyphrun CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qinputcontrol CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qrawfont Get rid of all instance usage of QFontDatabase 2020-11-03 20:36:34 +01:00
qstatictext CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qsyntaxhighlighter CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtextblock CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtextcursor Make QPointer comparisons hidden friends 2020-10-23 09:32:37 +02:00
qtextdocument QFont: Prefer setFamilies() over setFamily() 2020-11-20 14:30:22 +01:00
qtextdocumentfragment QFont: Prefer setFamilies() over setFamily() 2020-11-20 14:30:22 +01:00
qtextdocumentlayout CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtextformat QFont: Prefer setFamilies() over setFamily() 2020-11-20 14:30:22 +01:00
qtextimagehandler Set the url to have the AtNx filename if one is found 2020-11-06 09:16:30 +00:00
qtextlayout QChar: make construction from integral explicit 2020-11-15 14:41:05 +01:00
qtextlist CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtextmarkdownimporter Support the markdown underline extension 2020-11-07 09:35:11 +01:00
qtextmarkdownwriter Support the markdown underline extension 2020-11-07 09:35:11 +01:00
qtextobject CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtextodfwriter CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtextpiecetable CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtextscriptengine QFont: Prefer setFamilies() over setFamily() 2020-11-20 14:30:22 +01:00
qtexttable CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qzip CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
.prev_CMakeLists.txt Android: exclude tests crashing at start 2020-11-16 13:35:44 +02:00
CMakeLists.txt Android: exclude tests crashing at start 2020-11-16 13:35:44 +02:00
text.pro Android: exclude tests crashing at start 2020-11-16 13:35:44 +02:00