diff options
Diffstat (limited to 'vcl/qt5')
-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) |