summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@nokia.com>2012-01-23 14:03:50 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-04-12 05:56:38 (GMT)
commit43cba99bc8195a19b7c3fae73ef40b9b65d39ff6 (patch)
tree3ce2bb693644734b6cefb70738e7e3b0959b3f1a
parentf99ab73f19e0e57e9c7defc67448c0bebbbe9b90 (diff)
downloadQt-43cba99bc8195a19b7c3fae73ef40b9b65d39ff6.zip
Qt-43cba99bc8195a19b7c3fae73ef40b9b65d39ff6.tar.gz
Qt-43cba99bc8195a19b7c3fae73ef40b9b65d39ff6.tar.bz2
Accessibility: send cursor move updates.
ATs need to be able to react to cursor movement. Change-Id: I8fbb036b6a180f555505ab529020d0aea2d25e7c Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
-rw-r--r--src/gui/widgets/qplaintextedit.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/widgets/qplaintextedit.cpp b/src/gui/widgets/qplaintextedit.cpp
index 66bf560..102e7fc 100644
--- a/src/gui/widgets/qplaintextedit.cpp
+++ b/src/gui/widgets/qplaintextedit.cpp
@@ -58,6 +58,7 @@
#include "private/qtextdocument_p.h"
#include "qtextlist.h"
#include "private/qtextcontrol_p.h"
+#include "qaccessible.h"
#include <qtextformat.h>
#include <qdatetime.h>
@@ -443,6 +444,10 @@ QPlainTextEditControl::QPlainTextEditControl(QPlainTextEdit *parent)
void QPlainTextEditPrivate::_q_cursorPositionChanged()
{
pageUpDownLastCursorYIsValid = false;
+#ifndef QT_NO_ACCESSIBILITY
+ Q_Q(QPlainTextEdit);
+ QAccessible::updateAccessibility(q, 0, QAccessible::TextCaretMoved);
+#endif
}
void QPlainTextEditPrivate::_q_verticalScrollbarActionTriggered(int action) {