summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2021-01-13 13:55:02 +0100
committerMorten Sørvig <morten.sorvig@qt.io>2021-02-01 20:06:52 +0100
commitfddc0b34dfa7fae74aca43534642a40ea1e30381 (patch)
tree1e529478dbafbc4d10bd1064eb0d47f2a1883314 /src/network
parent7c572884608c87036b2e6cc214a2ee62c3b6100b (diff)
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>
Diffstat (limited to 'src/network')
0 files changed, 0 insertions, 0 deletions