diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-10-01 09:26:37 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-10-01 10:45:23 +0200 |
commit | e65f0c096797799279d805dafab9fae7533f3b2f (patch) | |
tree | 3572a86fc561508da45cdf447f149e2105f5740f | |
parent | 4c05f6546b9558463a1cc458d49825e07092e8c0 (diff) |
Qt5AccessibleWidget: Implement childAt
Change-Id: I8703b33cf5d9f4ea119daf94392d67c9375cbb01
Reviewed-on: https://gerrit.libreoffice.org/61178
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
-rw-r--r-- | vcl/qt5/Qt5AccessibleWidget.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
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) |