qt6-bb10/tests/auto/gui/kernel
Laszlo Papp d83441340c QKeySequence: Add missing modifier names
The issue is that when someone is trying to use the following code:

QKeySequence keySequence(Qt::Key_Shift);
qDebug() << keySequence.toString();

This will print seemingly gibberish output. It is unicode in practice. For
Qt::Key_Shift, this would be: "�_@\uDC20"

The reason why this is happening is because we have platform-specific ways to
handle this due to Mac glyphs which are not available on Linux or Windows. This
works fine on Mac.

But for the Linux and Windows codepaths, there is not really any mapping like
for other keys. It seems that modifiers were left out.

The solution is to simply amend the list of mapping from these modifier key
codes to raw strings for Linux and Windows like it is done for other key codes.
So, now, modifiers will also be included in the list.

So, the expected output will be generated for the above code, as: "Shift".

[ChangeLog][QtGui][QKeySequence] Added missing modifier names

Fixes: QTBUG-69715
Fixes: QTBUG-40030
Change-Id: I460d54bc8e593b350ff95894f23c5b4a7c819a44
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2022-05-25 13:00:02 +00:00
..
noqteventloop Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qaction Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qactiongroup Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qaddpostroutine Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qbackingstore Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qclipboard Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qcursor Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qdrag Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qevent Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qfileopenevent Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qguiapplication Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qguieventdispatcher Remove the qmake project files 2021-01-07 15:32:28 +01:00
qguieventloop Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
qguimetatype Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qguitimer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qguivariant Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qhighdpi Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qinputdevice Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qinputmethod Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qkeyevent Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qkeysequence QKeySequence: Add missing modifier names 2022-05-25 13:00:02 +00:00
qmouseevent Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qmouseevent_modal Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglwindow Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qpalette Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qpixelformat Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qrasterwindow Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qscreen Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qshortcut Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qsurfaceformat Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtouchevent Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qwindow xcb: Delete touch points without target windows 2022-05-20 10:26:18 +02:00
CMakeLists.txt CMake: Add BUILTIN_TESTDATA option to qt_internal_add_test 2022-02-11 21:54:44 +01:00