qt6-bb10/tests/auto/gui/kernel
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
..
noqteventloop Revert "Allow QWindowsPipe{Reader,Writer} to work with foreign event loops" 2020-11-20 13:28:31 +00:00
qaction CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qactiongroup CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qaddpostroutine CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qbackingstore CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qclipboard Rename the new platform APIs from QPlatformInterface to QNativeInterface 2020-10-07 13:03:27 +02:00
qcursor CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qdrag CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qevent CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qfileopenevent CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qguiapplication CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qguieventdispatcher CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qguieventloop CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qguimetatype Rename the QMetaType::MovableType flag to RelocatableType 2020-10-23 09:49:36 +02:00
qguitimer CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qguivariant Fix weight when reading old serialized QFonts 2020-11-20 20:29:00 +00:00
qhighdpi Add tst_QHighDpi::mouseVelocity() 2020-11-20 10:45:11 +01:00
qhighdpiscaling Merge existing tst_qhighdpiscaling into tst_qhgihdpi 2020-10-20 07:27:04 +02:00
qinputdevice CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qinputmethod CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qkeyevent CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qkeysequence Fix compile warnings from ignored return value 2020-10-17 08:21:52 +02:00
qmouseevent Stop copying events in tests 2020-11-12 15:25:06 +01:00
qmouseevent_modal CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qopenglwindow CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qpalette CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qpixelformat CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qrasterwindow CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qscreen Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00
qshortcut CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qsurfaceformat CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtouchevent Stop copying events in tests 2020-11-12 15:25:06 +01:00
qwindow Android: Ensure windows always have a geometry on creation 2020-11-17 10:48:05 +00:00
.prev_CMakeLists.txt CMake: Skip / ignore failing tests on CMake platforms 2020-07-01 14:55:29 +02:00
CMakeLists.txt Merge existing tst_qhighdpiscaling into tst_qhgihdpi 2020-10-20 07:27:04 +02:00
kernel.pro Merge existing tst_qhighdpiscaling into tst_qhgihdpi 2020-10-20 07:27:04 +02:00