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

New commits:
commit ba31e1bfdbcb836ba0fb4ea795997ce788b21e11
Author:     Michael Weghorn <[email protected]>
AuthorDate: Thu Aug 4 09:29:14 2022 +0200
Commit:     Michael Weghorn <[email protected]>
CommitDate: Thu Aug 4 13:12:40 2022 +0200

    qt a11y: Map AccessibleRole::FILE_CHOOSER
    
    Qt doesn't have an extra role for this, so
    use the dialog role, since `AccessibleRole::FILE_CHOOSER`
    is for a "specialized dialog that displays the files in the
    directory and lets the user select a file, browse a different
    directory, or specify a filename."
    
    Change-Id: Ib17b573dcd149148e72e1a47922dccf6f8fb67d5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137784
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <[email protected]>

diff --git a/vcl/qt5/QtAccessibleWidget.cxx b/vcl/qt5/QtAccessibleWidget.cxx
index 0599b595f7fe..367981b8678a 100644
--- a/vcl/qt5/QtAccessibleWidget.cxx
+++ b/vcl/qt5/QtAccessibleWidget.cxx
@@ -373,6 +373,8 @@ QAccessible::Role QtAccessibleWidget::role() const
             return QAccessible::UserRole;
         case AccessibleRole::END_NOTE:
             return QAccessible::Note;
+        case AccessibleRole::FILE_CHOOSER:
+            return QAccessible::Dialog;
         case AccessibleRole::FILLER:
             return QAccessible::Whitespace;
         case AccessibleRole::FONT_CHOOSER:

Reply via email to