qt6-bb10/src
Tor Arne Vestbø bae9aeacbe macOS: Correctly compute marked and selected text range, and use for insertion
The NSTextInputClient protocol expects marked (composed) and selected
text ranges to be relative to the document, not to the current editing
block as Qt typically expects.

Luckily we can use the absolute cursor position to compute an absolute
offset that we can apply to any other positions, such as the selection.

Now that we are computing the ranges correctly we can also use them
during text insertion, when the incoming replacementRange is not valid.

We then transform and sanitize the replacement range to the format that
Qt expects for QInputMethodEvent::setCommitString().

Pick-to: 6.2
Change-Id: I4cb2f7c63adb92e407f38af05adce539c9bed7e2
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2021-08-24 13:39:06 +02:00
..
3rdparty Update Harfbuzz to version 2.9.0 2021-08-23 07:37:04 +02:00
android Fix access to content: URLs with transient read/write permissions 2021-08-23 15:36:03 +02:00
concurrent QtConcurrent: fix examples of overloaded methods in docs 2021-08-18 22:31:17 +02:00
corelib Unicode: fix the grapheme clustering algorithm 2021-08-24 12:58:20 +02:00
dbus QDBus: fix ExportScriptableInvokables to allow calling scriptable invokables 2021-08-23 23:07:30 +02:00
entrypoint Adjust the EntryPoint target name according to the internal module naming policy 2021-06-15 12:51:49 +02:00
gui Fix warning about loop variable creating a copy 2021-08-24 13:39:06 +02:00
network wasm: fix unused variable warning/error 2021-08-19 18:41:53 +02:00
opengl CMake: Make WrapVulkanHeaders target optional for QtGui consumers 2021-07-29 16:38:50 +02:00
openglwidgets Migrate to autogenerated cpp exports 2021-06-25 19:33:12 +02:00
platformsupport Fix button type to update coordinates when dragging 2021-08-11 12:38:35 +00:00
plugins macOS: Correctly compute marked and selected text range, and use for insertion 2021-08-24 13:39:06 +02:00
printsupport Fix printing with unhinted fonts 2021-08-16 20:20:26 +02:00
sql Doc: Ensure deprecated APIs in Qt Sql are documented as such 2021-07-22 07:08:56 +02:00
testlib Add note on selecting the device which is used to run tests on Android 2021-08-18 19:53:38 +00:00
tools qdbusxml2cpp: don't generate an include for all of QtDBus+QtCore 2021-08-23 23:07:30 +02:00
widgets QGraphicsProxyWidget: forward Window(De)Activate events 2021-08-24 13:32:07 +02:00
xml Migrate to autogenerated cpp exports 2021-06-25 19:33:12 +02:00
CMakeLists.txt Make it possible to disable the PrintSupport module 2021-02-09 09:17:21 +01:00