qt5base-lts/src
Morten Johan Sørvig fddc0b34df Add geometry accessors to QPlatformInputContext
Currently the platform plugins use the public QInputMethod
API when querying geometry. However, QInputMethod returns
geometry in device independent pixels, while the platform
plugins require geometry in native pixels.

Add new API to QPlatformInputContext which returns input
geometry in the native window coordinate system:

    QRectF inputItemRectangle()
    QRectF inputItemClipRectangle()
    QRectF cursorRectangle()
    QRectF anchorRectangle()
    QRectF keyboardRectangle()

These make the relevant QHighDpi calls internally, and
such calls can then be moved out of the platform plugins.

Disambiguate inputItemRectangle() in qandroidinputcontext.cpp
by renaming it to screenInputItemRectangle().

Change-Id: I561745b64fb197d64e3dfddcf0751528bb8d0605
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2021-02-01 20:06:52 +01:00
..
3rdparty Update double-conversion library to current master 2021-02-01 14:31:30 +01:00
android Android: Finish composing text before Key handling 2021-01-19 19:37:02 +01:00
concurrent Remove the qmake project files 2021-01-07 15:32:28 +01:00
corelib Fix handling of Sunday in POSIX time-zone rules 2021-02-01 16:28:26 +01:00
dbus Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
entrypoint Generate Qt6EntryPointAdditionalTargetInfo independent of platform 2021-01-20 14:03:45 +00:00
gui Add geometry accessors to QPlatformInputContext 2021-02-01 20:06:52 +01:00
network QSsl::TlsKey - provide the interface and implementations 2021-02-01 14:36:40 +01:00
opengl Implement vertical subpixel positioning where available 2021-01-25 15:56:50 +01:00
openglwidgets Document QOpenGLWidget limitations without an alpha channel 2021-01-15 15:21:28 +01:00
platformsupport evdevtouch: Fix normalizedPosition 2021-01-27 00:56:05 +00:00
plugins Add geometry accessors to QPlatformInputContext 2021-02-01 20:06:52 +01:00
printsupport Remove the qmake project files 2021-01-07 15:32:28 +01:00
sql Adjust sql drivers documentation to cmake 2021-01-19 19:10:41 +01:00
testlib Remove the QT_CMAKE_BUILD preprocessor define 2021-01-22 19:22:15 +01:00
tools Move static PCRE2 defines to non-system PCRE2 section 2021-02-01 14:34:46 +01:00
widgets QDial: fix painting QDial when the rect has an offset 2021-01-29 07:26:56 +01:00
xml Remove the qmake project files 2021-01-07 15:32:28 +01:00
CMakeLists.txt cmake: Remove indirection via Startup target for EntryPoint 2020-11-12 18:43:43 +01:00