vcl/qt5/QtAccessibleWidget.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 7f5cab0cf4aa25cf3b84a39b0f9e41de51928fbc
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Thu Aug 4 09:42:15 2022 +0200
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Thu Aug 4 16:19:08 2022 +0200

    qt a11y: Map BUTTON_{DROPDOWN,MENU} to Qt equivalents
    
    There are specialised roles for these 2 button types
    in Qt as well.
    
    Change-Id: I67f49f0c4afc5f20a8c42fa2388f08ea9d950b91
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137785
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>

diff --git a/vcl/qt5/QtAccessibleWidget.cxx b/vcl/qt5/QtAccessibleWidget.cxx
index 367981b8678a..789de70d1311 100644
--- a/vcl/qt5/QtAccessibleWidget.cxx
+++ b/vcl/qt5/QtAccessibleWidget.cxx
@@ -475,9 +475,9 @@ QAccessible::Role QtAccessibleWidget::role() const
         case AccessibleRole::VIEW_PORT:
             return QAccessible::UserRole;
         case AccessibleRole::BUTTON_DROPDOWN:
-            return QAccessible::Button;
+            return QAccessible::ButtonDropDown;
         case AccessibleRole::BUTTON_MENU:
-            return QAccessible::Button;
+            return QAccessible::ButtonMenu;
         case AccessibleRole::CAPTION:
             return QAccessible::StaticText;
         case AccessibleRole::CHART:

Reply via email to