vcl/qt5/Qt5AccessibleWidget.cxx |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

New commits:
commit e65f0c096797799279d805dafab9fae7533f3b2f
Author:     Samuel Mehrbrodt <samuel.mehrbr...@cib.de>
AuthorDate: Mon Oct 1 09:26:37 2018 +0200
Commit:     Samuel Mehrbrodt <samuel.mehrbr...@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.mehrbr...@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)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to