qt6-bb10/tests/auto
Yansheng Zhu 70096b2bbd Implement Qt::ImEnabled by isEnabled() and isReadOnly()
Previously, querying Qt::ImEnabled only returned the value of
isEnabling(), which is incorrect for edit widgets with read-only
properties set, as Qt::ImEnabled indicates whether text can be *input*
through the input method, which results in the IM being able to insert
text into read-only edit widgets.

The fixed version uses both isEnabling() and isReadOnly() values to
determine whether input methods need to be enabled. For some platforms
(like iOS and Android) that rely on IM to select text, a check for
ImReadOnly has been added to their QPA plugins to enable handles on
read-only input boxes.

At the same time, the imEnabledNotImplemented function in the test file
tst_qwidget was modified, since ImEnabling should give a _false_ value
when a lineedit is read-only.

Task-number: QTBUG-105009
Task-number: QTBUG-110838
Task-number: QTBUG-119182
Pick-to: 6.7 6.6 6.5
Change-Id: Ia2abcdb3200826d567f90447d4f8b71d0ef1fbf0
Reviewed-by: Yansheng Zhu <670429759@qq.com>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2024-03-01 02:22:06 +08:00
..
bic/data Add binary compatibility file for 6.6.0 2023-10-17 22:23:42 +03:00
cmake Add the support for custom definitions to the qt_manual_moc function 2024-02-23 20:41:30 +01:00
concurrent Remove extra semi-colons 2024-02-06 20:17:18 +09:00
corelib Add QDirListing, an STL-style iterator for directory entries 2024-02-29 16:35:57 +02:00
dbus Remove extra semi-colons 2024-02-06 20:17:18 +09:00
gui QPainterPath: detach and reset before streaming in 2024-02-27 03:47:11 +01:00
guiapplauncher Turn the "concentriccircles" example into snippets, update screenshot 2023-12-14 20:06:32 +01:00
network tst_qudpsocket: add helper exe to dependencies 2024-02-29 14:56:11 +01:00
opengl tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00
other Change license for tests files 2024-02-04 09:56:42 +01:00
printsupport Change license for tests files 2024-02-04 09:56:42 +01:00
shared Change license for tests files 2024-02-04 09:56:42 +01:00
sql Change license for tests files 2024-02-04 09:56:42 +01:00
testlib QTest: allow passing chrono literal as QTRY_ timeout 2024-02-07 12:15:09 +00:00
tools Long live QT_TECH_PREVIEW_API 2024-02-20 05:01:09 +01:00
wasm wasm: Refractor Selenium manual test into auto test 2024-02-07 13:15:09 +01:00
widgets Implement Qt::ImEnabled by isEnabled() and isReadOnly() 2024-03-01 02:22:06 +08:00
xml Change license for tests files 2024-02-04 09:56:42 +01:00
CMakeLists.txt wasm: Add auto test corelib/io/qabstractfileengine 2024-02-23 19:11:05 +01:00
network-settings.h Change license for tests files 2024-02-04 09:56:42 +01:00