qt5base-lts/src
Richard Moe Gustavsen e44edaac2c QWidget: use WA_InputMethodEnabled when ImEnabled is not implemented
In Qt 6.3, a check for WA_InputMethodEnabled was removed
in QWidget, to support IM queries also for read-only
widgets (7c6e4af48). This caused a regression on iOS, which
made the input panel open for widgets that didn't support
IM at all.

A patch was merged that solved the regression (3b12305575),
but it didn't take the widget attribute into account.
Since not doing so has the potential to cause regressions,
this patch will modify the affected code once more, so that
we instead fall back to test WA_InputMethodEnabled when
ImEnabled is not implemented. This will match closely
to the way ImEnabled was implemented in Qt 6.2.

Since we, with this change, now require that either ImEnabled
or WA_InputMethodEnabled is set, our own input widgets will
fail to support IM text selection when they're read-only, since
they actually don't implement ImEnabled.
This patch will therefore also make sure that we do so.

Task-number: QTBUG-104527
Pick-to: 6.4 6.3
Change-Id: I70ad910aec38d0a74f4dd7d3115d3c45c16d2b3b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2022-07-08 09:41:29 +02:00
..
3rdparty Update Gradle to 7.4.2 and Android Gradle Plug-in (AGP) to 7.2.1 2022-07-06 11:43:56 +03:00
android Update Gradle to 7.4.2 and Android Gradle Plug-in (AGP) to 7.2.1 2022-07-06 11:43:56 +03:00
concurrent Add the qt_class pragma to file listed in sync.profile classnames map 2022-06-22 03:03:31 +02:00
corelib moc: Allow writing properties through bindables 2022-07-08 09:38:27 +02:00
dbus Fix QDBusInterface crashing with empty path on construction 2022-06-27 14:02:47 +02:00
entrypoint Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
gui Make it possible to check the accepted state of touch events in tests 2022-07-08 06:12:03 +02:00
network QHttpHeaderParser: fix int/qsizetype nags 2022-06-27 14:02:47 +02:00
opengl Avoid including qopenglfunctions header files if Qt is built with GLES2 2022-06-28 10:52:23 +02:00
openglwidgets Fix typos in docs and comments 2022-06-15 21:31:02 +02:00
platformsupport Fix crash in QKmsDevice::createScreenForConnector 2022-07-07 15:47:14 +03:00
plugins Windows: Account for not finding child windows when calling ChildWindowFromPointEx 2022-07-07 11:20:40 +00:00
printsupport macOS: set print dialog up with page attributes when no printer is installed 2022-06-17 19:06:10 +02:00
sql Add the qt_class pragma to file listed in sync.profile classnames map 2022-06-22 03:03:31 +02:00
testlib Make it possible to check the accepted state of touch events in tests 2022-07-08 06:12:03 +02:00
tools moc: Allow writing properties through bindables 2022-07-08 09:38:27 +02:00
widgets QWidget: use WA_InputMethodEnabled when ImEnabled is not implemented 2022-07-08 09:41:29 +02:00
xml QDom: Use the default for assignment operators in QDom* classes 2022-07-05 09:31:48 +00:00
CMakeLists.txt