vcl/qt5/QtAccessibleWidget.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a182f283dabf5753e857a66386ef32226be47f49
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Mon Nov 6 16:16:24 2023 +0100
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Tue Nov 7 07:58:28 2023 +0100

    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.wegh...@posteo.de>

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

Reply via email to