diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2022-02-21 15:14:17 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2022-02-23 06:28:03 +0100 |
commit | ab925e1d8d927f3b26cbe2d60e5aa35e1c6f1076 (patch) | |
tree | c00cf51ebb5861d9cca48e9a88994183e509b3ad /vcl | |
parent | fe9206b474464dd092da1d5c1ee788fe1c9b0765 (diff) |
qt a11y: Handle VALUE_CHANGED event
Change-Id: I34d813ced29a591b0a6652eeb1271a978980bba5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130359
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/qt5/QtAccessibleEventListener.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/vcl/qt5/QtAccessibleEventListener.cxx b/vcl/qt5/QtAccessibleEventListener.cxx index 08b97b69c347..3febce8a587e 100644 --- a/vcl/qt5/QtAccessibleEventListener.cxx +++ b/vcl/qt5/QtAccessibleEventListener.cxx @@ -172,9 +172,19 @@ void QtAccessibleEventListener::notifyEvent(const css::accessibility::Accessible QAccessible::updateAccessibility( new QAccessibleEvent(pQAccessibleInterface, QAccessible::ForegroundChanged)); return; + case AccessibleEventId::VALUE_CHANGED: + { + QAccessibleValueInterface* pValueInterface = pQAccessibleInterface->valueInterface(); + if (pValueInterface) + { + const QVariant aValue = pValueInterface->currentValue(); + QAccessible::updateAccessibility( + new QAccessibleValueChangeEvent(pQAccessibleInterface, aValue)); + } + return; + } case AccessibleEventId::ROLE_CHANGED: case AccessibleEventId::INVALIDATE_ALL_CHILDREN: - case AccessibleEventId::VALUE_CHANGED: case AccessibleEventId::CONTENT_FLOWS_FROM_RELATION_CHANGED: case AccessibleEventId::CONTENT_FLOWS_TO_RELATION_CHANGED: case AccessibleEventId::CONTROLLED_BY_RELATION_CHANGED: |