vcl/qt5/Qt5AccessibleWidget.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit add4f7732840d362cb703ee3a894edfe2fd0eac3
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Wed Jul 21 05:54:44 2021 +0200
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Wed Jul 21 07:43:22 2021 +0200

    qt5 a11y: Handle AccessibleStateType::MULTI_LINE
    
    This addresses warnings like
    
        warn:vcl.qt5:53343:53343:vcl/qt5/Qt5AccessibleWidget.cxx:639: Unmapped 
state: 17
    
    seen e.g. when navigating to a Writer paragraph in Accerciser when
    using LO with the kf5 VCL plugin.
    
    With this in place, the "multi line" state is correctly shown in
    Accerciser.
    
    Change-Id: Ib38a7374d9c81f2d5c361809583f711f4eadccba
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119295
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>

diff --git a/vcl/qt5/Qt5AccessibleWidget.cxx b/vcl/qt5/Qt5AccessibleWidget.cxx
index fdce6e41fc87..ee93bc6a21de 100644
--- a/vcl/qt5/Qt5AccessibleWidget.cxx
+++ b/vcl/qt5/Qt5AccessibleWidget.cxx
@@ -590,6 +590,9 @@ void lcl_addState(QAccessible::State* state, sal_Int16 
nState)
         case AccessibleStateType::MOVEABLE:
             state->movable = true;
             break;
+        case AccessibleStateType::MULTI_LINE:
+            state->multiLine = true;
+            break;
         case AccessibleStateType::OPAQUE:
             // No match
             break;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to