[Libreoffice-commits] core.git: vcl/qt5
Michael Weghorn (via logerrit)
logerrit at kemper.freedesktop.org
Tue Sep 21 19:38:49 UTC 2021
vcl/qt5/Qt5AccessibleWidget.cxx | 26 ++++++++++++++++++++++++--
1 file changed, 24 insertions(+), 2 deletions(-)
New commits:
commit 91798635258c2b1487f8265eff08633db4ec5ab2
Author: Michael Weghorn <m.weghorn at posteo.de>
AuthorDate: Tue Sep 21 16:58:58 2021 +0200
Commit: Michael Weghorn <m.weghorn at posteo.de>
CommitDate: Tue Sep 21 21:38:13 2021 +0200
qt5 a11y: Implement Qt5AccessibleWidget::is{Column,Row}Selected
Change-Id: I2abfbc69a422a56dc07afd76f0c7a8ead1891830
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122398
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn at posteo.de>
diff --git a/vcl/qt5/Qt5AccessibleWidget.cxx b/vcl/qt5/Qt5AccessibleWidget.cxx
index f7d833407a75..3a6e5a288194 100644
--- a/vcl/qt5/Qt5AccessibleWidget.cxx
+++ b/vcl/qt5/Qt5AccessibleWidget.cxx
@@ -1212,9 +1212,31 @@ QString Qt5AccessibleWidget::columnDescription(int column) const
return toQString(xTable->getAccessibleColumnDescription(column));
}
-bool Qt5AccessibleWidget::isColumnSelected(int /* column */) const { return true; }
+bool Qt5AccessibleWidget::isColumnSelected(int nColumn) const
+{
+ Reference<XAccessibleContext> xAc = getAccessibleContextImpl();
+ if (!xAc.is())
+ return false;
+
+ Reference<XAccessibleTable> xTable(xAc, UNO_QUERY);
+ if (!xTable.is())
+ return false;
+
+ return xTable->isAccessibleColumnSelected(nColumn);
+}
-bool Qt5AccessibleWidget::isRowSelected(int /* row */) const { return true; }
+bool Qt5AccessibleWidget::isRowSelected(int nRow) const
+{
+ Reference<XAccessibleContext> xAc = getAccessibleContextImpl();
+ if (!xAc.is())
+ return false;
+
+ Reference<XAccessibleTable> xTable(xAc, UNO_QUERY);
+ if (!xTable.is())
+ return false;
+
+ return xTable->isAccessibleRowSelected(nRow);
+}
void Qt5AccessibleWidget::modelChange(QAccessibleTableModelChangeEvent*) {}
More information about the Libreoffice-commits
mailing list