diff options
author | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2021-11-04 11:11:39 +0100 |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2021-11-12 00:20:51 +0100 |
commit | 7d90bee769a26c2060fa73b3e9c06278b9c5e358 (patch) | |
tree | cb5d3a6413c35799dd6453880118070d5eaa9e4e /mkspecs/features/android/sdk.prf | |
parent | 7c6e4af4832658d0beede9adc77954222898cb3b (diff) |
QLineEdit: always process an input method event
If a line edit is read-only, it only means that the _user_
should not be able to change the text. Qt itself (or the
application, by e.g calling setText()) should not have
this restriction.
For the QPA plugins to be able adjust the current selection from
selection handles, we should always process input method events.
It's the callers responsibility to ensure that the focus object
supports the actions it sends to the focus object (like ImReadOnly,
or ImhNoPredictiveText), and not QLineEdit.
This patch will therefore remove the check for
shouldEnableInputMethod() before processing the event. This will
allow us to adjust the selection from the QPA plugin (iOS/Android).
Task-number: QTBUG-91545
Change-Id: Id664ac3605a3fa0bf207635ed31d24c045d29a07
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'mkspecs/features/android/sdk.prf')
0 files changed, 0 insertions, 0 deletions