summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2021-07-21 05:54:44 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2021-07-21 07:43:22 +0200
commitadd4f7732840d362cb703ee3a894edfe2fd0eac3 (patch)
tree31343b5ea8d6049fecadce71381b986a0dabb899 /vcl
parent7be0f62de07aa3a046f0996eeb673d9a4d7c9672 (diff)
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.weghorn@posteo.de>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/qt5/Qt5AccessibleWidget.cxx3
1 files changed, 3 insertions, 0 deletions
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;