summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2023-11-06 16:16:24 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2023-11-07 07:58:28 +0100
commita182f283dabf5753e857a66386ef32226be47f49 (patch)
tree42ea5f7b08cb9549e8cc510aade2e970839e17de /vcl
parent66fa5aeec5dbeba978f70fe464fbc87c3aba8ed2 (diff)
qt a11y: Map AccessibleStateType::INDETERMINATE to Qt equivalent
`QAccessible::State` has a `checkStateMixed` state flag [1] that matches what `AccessibleStateType::INDETERMINATE` is for, and Qt's AT-SPI adapter maps that to the AT-SPI equivalent, `ATSPI_STATE_INDETERMINATE`, so add the corresponding mapping. [1] https://doc.qt.io/qt-6/qaccessible-state.html [2] https://code.qt.io/cgit/qt/qtbase.git/tree/src/gui/accessible/linux/qspi_constant_mappings.cpp?id=c5d9e4a7a78b82ed31e5225c169de4718dfe4f05#n41 Change-Id: Ic16f50344040f3d4ff7ad4ef0002abf5a7ae3dcc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159004 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/qt5/QtAccessibleWidget.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/qt5/QtAccessibleWidget.cxx b/vcl/qt5/QtAccessibleWidget.cxx
index cbd750a4da38..47eb08b7e8c7 100644
--- a/vcl/qt5/QtAccessibleWidget.cxx
+++ b/vcl/qt5/QtAccessibleWidget.cxx
@@ -606,7 +606,7 @@ void lcl_addState(QAccessible::State* state, sal_Int64 nState)
// No match
break;
case AccessibleStateType::INDETERMINATE:
- // No match
+ state->checkStateMixed = true;
break;
case AccessibleStateType::MANAGES_DESCENDANTS:
// No match