summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget.cpp
diff options
context:
space:
mode:
authorJosé Millán Soto <fid@gpul.org>2011-07-29 17:35:54 (GMT)
committerFrederik Gladhorn <frederik.gladhorn@nokia.com>2011-07-29 17:35:54 (GMT)
commitdf3f763920b1450733817596148e087d11c0c543 (patch)
tree9804a272aa3e858000a47521c661b25de4234a77 /src/gui/kernel/qwidget.cpp
parent836ecd799937294fb18cf2d47f155e4649a88077 (diff)
downloadQt-df3f763920b1450733817596148e087d11c0c543.zip
Qt-df3f763920b1450733817596148e087d11c0c543.tar.gz
Qt-df3f763920b1450733817596148e087d11c0c543.tar.bz2
Call QAccessible::updateAccessibility when a widget is deleted
Merge-request: 1310 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
Diffstat (limited to 'src/gui/kernel/qwidget.cpp')
-rw-r--r--src/gui/kernel/qwidget.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp
index a2109b4..0dd6cfe 100644
--- a/src/gui/kernel/qwidget.cpp
+++ b/src/gui/kernel/qwidget.cpp
@@ -1670,6 +1670,10 @@ QWidget::~QWidget()
if (!d->children.isEmpty())
d->deleteChildren();
+#ifndef QT_NOACCESSIBILITY
+ QAccessible::updateAccessibility(this, 0, QAccessible::ObjectDestroyed);
+#endif
+
QApplication::removePostedEvents(this);
QT_TRY {