vcl/qt5/QtAccessibleWidget.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
New commits: commit c67c9b04af1531d27ecdc2b6cc3928bc7c7715c0 Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Sat Oct 19 09:04:51 2024 +0200 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Mon Oct 21 07:49:04 2024 +0200 qt a11y: Map BLOCK_QUOTE role to new Qt equivalent For Qt >= 6.9, map the BLOCK_QUOTE role to QAccessible::BlockQuote, newly introduced upstream in qtbase commit [1]: commit 0b5874bc96f4d1a8cba4fe14ee0b3499cc04c8cd Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Thu Sep 12 17:21:37 2024 +0200 Commit: Volker Hilsheimer <volker.hilshei...@qt.io> CommitDate: Fri Oct 18 21:03:09 2024 +0000 a11y: Add new BlockQuote role With this in place, paragraphs to which the "Block Quotation" paragraph style has been assigned, are now shown with the "block quote" role in Accerciser when using the qt6 VCL plugin with a current qtbase dev build. [1] https://code.qt.io/cgit/qt/qtbase.git/commit/?id=0b5874bc96f4d1a8cba4fe14ee0b3499cc04c8cd Change-Id: I3b9822e4a5ce6eed3ab4820a208f794bcf398e85 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173272 Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> Tested-by: Jenkins diff --git a/vcl/qt5/QtAccessibleWidget.cxx b/vcl/qt5/QtAccessibleWidget.cxx index 819e1d26228c..c6699bf18e5a 100644 --- a/vcl/qt5/QtAccessibleWidget.cxx +++ b/vcl/qt5/QtAccessibleWidget.cxx @@ -394,6 +394,12 @@ QAccessible::Role QtAccessibleWidget::role() const return QAccessible::NoRole; case AccessibleRole::ALERT: return QAccessible::AlertMessage; + case AccessibleRole::BLOCK_QUOTE: +#if QT_VERSION >= QT_VERSION_CHECK(6, 9, 0) + return QAccessible::BlockQuote; +#else + return QAccessible::Paragraph; +#endif case AccessibleRole::COLUMN_HEADER: return QAccessible::ColumnHeader; case AccessibleRole::CANVAS: @@ -482,7 +488,6 @@ QAccessible::Role QtAccessibleWidget::role() const case AccessibleRole::PANEL: return QAccessible::Pane; case AccessibleRole::PARAGRAPH: - case AccessibleRole::BLOCK_QUOTE: return QAccessible::Paragraph; case AccessibleRole::PASSWORD_TEXT: // Qt API doesn't have a separate role to distinguish password edits,