summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@nokia.com>2012-01-20 17:12:13 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-01-25 03:06:12 (GMT)
commit63bf9cafcb1107866c518d07ecb2c691c2ad5856 (patch)
tree33311eba7285669d6141bbde1e3732afad7daea0 /src
parent3864ad09d578210b52e5f58fca2ee8a1144f5be2 (diff)
downloadQt-63bf9cafcb1107866c518d07ecb2c691c2ad5856.zip
Qt-63bf9cafcb1107866c518d07ecb2c691c2ad5856.tar.gz
Qt-63bf9cafcb1107866c518d07ecb2c691c2ad5856.tar.bz2
Send text selection changes for accessibility.
Change-Id: I3c50510ae9f995101d6e2c977c5138713389d71e Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/qlineedit_p.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/qlineedit_p.cpp b/src/gui/widgets/qlineedit_p.cpp
index 30cdb90..08b0685 100644
--- a/src/gui/widgets/qlineedit_p.cpp
+++ b/src/gui/widgets/qlineedit_p.cpp
@@ -142,6 +142,9 @@ void QLineEditPrivate::_q_selectionChanged()
}
emit q->selectionChanged();
+#ifndef QT_NO_ACCESSIBILITY
+ QAccessible::updateAccessibility(q, 0, QAccessible::TextSelectionChanged);
+#endif
}
void QLineEditPrivate::_q_updateNeeded(const QRect &rect)