diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-10-17 11:12:57 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-10-17 14:21:58 +0200 |
commit | 1f3576acfaae79cb232698296b3501baf3b489d4 (patch) | |
tree | ef5c72cfd476cd1c5873499686ea9e7d0d742175 /vcl | |
parent | 6c8c47429936c30ebb760253fa4078c1e410eea5 (diff) |
Implement Qt5AccessibleText::characterCount
Change-Id: I91135172bbfb34010f6c53833ac4b7c06b0f7d26
Reviewed-on: https://gerrit.libreoffice.org/61872
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/qt5/Qt5AccessibleText.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vcl/qt5/Qt5AccessibleText.cxx b/vcl/qt5/Qt5AccessibleText.cxx index 07e3350369d9..6cfb7228ec2c 100644 --- a/vcl/qt5/Qt5AccessibleText.cxx +++ b/vcl/qt5/Qt5AccessibleText.cxx @@ -57,7 +57,11 @@ QString Qt5AccessibleText::attributes(int /* offset */, int* /* startOffset */, { return QString(); } -int Qt5AccessibleText::characterCount() const { return 0; } +int Qt5AccessibleText::characterCount() const +{ + Reference<XAccessibleText> xText(m_xAccessible, UNO_QUERY); + return xText->getCharacterCount(); +} QRect Qt5AccessibleText::characterRect(int /* offset */) const { return QRect(); } int Qt5AccessibleText::cursorPosition() const { return 0; } int Qt5AccessibleText::offsetAtPoint(const QPoint& /* point */) const { return 0; } |