[Libreoffice-commits] core.git: vcl/qt5

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Oct 17 12:22:43 UTC 2018


 vcl/qt5/Qt5AccessibleText.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 1f3576acfaae79cb232698296b3501baf3b489d4
Author:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
AuthorDate: Wed Oct 17 11:12:57 2018 +0200
Commit:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
CommitDate: Wed Oct 17 14:21:58 2018 +0200

    Implement Qt5AccessibleText::characterCount
    
    Change-Id: I91135172bbfb34010f6c53833ac4b7c06b0f7d26
    Reviewed-on: https://gerrit.libreoffice.org/61872
    Tested-by: Jenkins
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>

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; }


More information about the Libreoffice-commits mailing list