[Libreoffice-commits] core.git: vcl/qt5
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Oct 1 08:46:33 UTC 2018
vcl/qt5/Qt5AccessibleWidget.cxx | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit e65f0c096797799279d805dafab9fae7533f3b2f
Author: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
AuthorDate: Mon Oct 1 09:26:37 2018 +0200
Commit: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
CommitDate: Mon Oct 1 10:45:23 2018 +0200
Qt5AccessibleWidget: Implement childAt
Change-Id: I8703b33cf5d9f4ea119daf94392d67c9375cbb01
Reviewed-on: https://gerrit.libreoffice.org/61178
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
diff --git a/vcl/qt5/Qt5AccessibleWidget.cxx b/vcl/qt5/Qt5AccessibleWidget.cxx
index 3fecb9a28155..3c9f465869a4 100644
--- a/vcl/qt5/Qt5AccessibleWidget.cxx
+++ b/vcl/qt5/Qt5AccessibleWidget.cxx
@@ -545,9 +545,12 @@ QObject* Qt5AccessibleWidget::object() const { return nullptr; }
void Qt5AccessibleWidget::setText(QAccessible::Text /* t */, const QString& /* text */) {}
-QAccessibleInterface* Qt5AccessibleWidget::childAt(int /* x */, int /* y */) const
+QAccessibleInterface* Qt5AccessibleWidget::childAt(int x, int y) const
{
- return nullptr;
+ Reference<XAccessibleComponent> xAccessibleComponent(m_xAccessible->getAccessibleContext(),
+ UNO_QUERY);
+ return QAccessible::queryAccessibleInterface(
+ new Qt5XAccessible(xAccessibleComponent->getAccessibleAtPoint(awt::Point(x, y))));
}
QAccessibleInterface* Qt5AccessibleWidget::customFactory(const QString& classname, QObject* object)
More information about the Libreoffice-commits
mailing list