summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorJosé Millán Soto <fid@gpul.org>2012-01-22 12:43:36 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-02-10 15:11:54 (GMT)
commitc03ceb203c65d9e3485fad848bfc0c4b6ee3e9aa (patch)
tree5bfca4ad98a6b21435d8fbde20701494499bd398 /src/gui
parent0aa20342693a954edabdbd8387d57610d931c3b5 (diff)
downloadQt-c03ceb203c65d9e3485fad848bfc0c4b6ee3e9aa.zip
Qt-c03ceb203c65d9e3485fad848bfc0c4b6ee3e9aa.tar.gz
Qt-c03ceb203c65d9e3485fad848bfc0c4b6ee3e9aa.tar.bz2
Added QAccessibleGroupBox
Added a new accessible interface for QGroupBox, as QAccessibleDisplay is not good enough when the QGroupBox is checkable. AccessibleFactory was modified to return a QAccessibleGroupBox when the accessible interface of a QGroupBox is requested. Created tst_QAccessibility::groupBoxTest Change-Id: I6c23dcf5562b3ea269b04102e78463b65827188a Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/qgroupbox.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/qgroupbox.cpp b/src/gui/widgets/qgroupbox.cpp
index 236f308..03275e7 100644
--- a/src/gui/widgets/qgroupbox.cpp
+++ b/src/gui/widgets/qgroupbox.cpp
@@ -641,6 +641,9 @@ void QGroupBox::setChecked(bool b)
update();
d->checked = b;
d->_q_setChildrenEnabled(b);
+#ifndef QT_NO_ACCESSIBILITY
+ QAccessible::updateAccessibility(this, 0, QAccessible::StateChanged);
+#endif
emit toggled(b);
}
}