qt5base-lts/src/gui
Michael Weghorn f67499baab a11y uia: Report UIA_StrikethroughStyleAttributeId
Implement support for getting the strikethrough
style (UIA attribute UIA_StrikethroughStyleAttributeId [1])
by checking for the corresponding IAccessible2
text attribute "text-line-through-type" [2] and
mapping the value accordingly if set.

Only report those attributes from the
QAccessibleTextInterface::attributes return value,
if they apply for the whole range of the
QWindowsUiaTextRangeProvider.

With this in place, the NVDA screen reader on
Windows announces "strikethrough" as expected
when asked to report the formatting information
(e.g. via NVDA+f shortcut) for the QTBUG-118106 example.

[1] https://learn.microsoft.com/en-us/windows/win32/winauto/uiauto-textattribute-ids
[2] https://wiki.linuxfoundation.org/accessibility/iaccessible2/textattributes

Task-number: QTBUG-118106
Change-Id: I2fa060bd3bf493227bba766385f34d224497784c
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
2023-11-15 12:06:27 +01:00
..
accessible a11y uia: Report UIA_StrikethroughStyleAttributeId 2023-11-15 12:06:27 +01:00
animation Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
compat Qt::mightBeRichText: port to QAnyStringView 2023-10-09 22:19:24 +00:00
doc Doc: Fix warnings and linking issues 2023-10-09 17:24:07 +00:00
image Add QPixmapIconEngine::isNull() 2023-11-08 11:11:48 +01:00
itemmodels QStandardItem: store Qt::UserRole-1 in a static constexpr var 2023-11-14 21:23:50 +02:00
kernel QGuiApplication: check return value of platformTheme::palette() 2023-11-14 20:24:58 +01:00
math3d Use atan2() in Quaternion axis-and-angle 2023-08-18 18:39:14 +02:00
opengl QOpenGLWidget: use (and prefer) InvalidateFramebuffer 2023-07-25 23:05:50 +02:00
painting Make all QPainter operations warn if there's no engine 2023-11-11 21:31:35 +00:00
platform QXkbCommon: Use isKeypad() to replace duplicate logic 2023-11-09 08:18:04 +00:00
rhi rhi: Add a flag to suppress D3D11 smoke test warnings 2023-11-08 14:15:18 +00:00
text Fix memory leak when resolving named instances in fonts 2023-11-13 19:14:59 +01:00
util no-thread: add QProcess config check 2023-10-31 11:21:53 +02:00
vulkan QVulkanWindow: Add a way to control post-1.0 Vulkan features 2023-11-06 18:31:54 +02:00
CMakeLists.txt Fix the broken condition of -fno-reorder-blocks-and-partition flag in QtGui 2023-11-14 08:31:28 +01:00
configure.cmake eglfs: extend configure test for egldevice 2023-10-17 21:51:16 +03:00
qt_cmdline.cmake Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
QtGui.dynlist Add dynlist file for QtGui 2013-03-18 17:11:04 +01:00