summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@code-monkey.de>2012-08-17 16:14:12 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-08-23 14:38:03 (GMT)
commit465c6fe7a16365c2fb7b46b664faaa9c1bacd022 (patch)
tree5254d8b881249ac84f18188226ff62ef5446940f /src/gui/widgets
parent88b4128ae0c992cedbbe785137ee55dfd623cf42 (diff)
downloadQt-465c6fe7a16365c2fb7b46b664faaa9c1bacd022.zip
Qt-465c6fe7a16365c2fb7b46b664faaa9c1bacd022.tar.gz
Qt-465c6fe7a16365c2fb7b46b664faaa9c1bacd022.tar.bz2
Make QStatusBar text available via accessibility.
Change-Id: Iec3efb4b91bdba33fe93b928ff2349440e15aa35 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/qstatusbar.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/widgets/qstatusbar.cpp b/src/gui/widgets/qstatusbar.cpp
index 5cfbe7c..2cec5f7 100644
--- a/src/gui/widgets/qstatusbar.cpp
+++ b/src/gui/widgets/qstatusbar.cpp
@@ -53,6 +53,10 @@
#include "qsizegrip.h"
#include "qmainwindow.h"
+#ifndef QT_NO_ACCESSIBILITY
+#include "qaccessible.h"
+#endif
+
#include <private/qlayoutengine_p.h>
#include <private/qwidget_p.h>
@@ -690,6 +694,12 @@ void QStatusBar::hideOrShow()
}
emit messageChanged(d->tempItem);
+
+#ifndef QT_NO_ACCESSIBILITY
+ if (QAccessible::isActive())
+ QAccessible::updateAccessibility(this, 0, QAccessible::NameChanged);
+#endif
+
repaint(d->messageRect());
}