summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@nokia.com>2012-05-10 21:36:24 +0200
committerQt by Nokia <qt-info@nokia.com>2012-06-20 09:18:08 +0200
commit8b24ed162cff3df7473345dedc14a412fabe8936 (patch)
tree3ad84734a0689e287b4ae960cc62234d8bf1d09f /src/widgets
parent3db8877d286b673bf8a54e7514e8bb70223e4e8a (diff)
Accessibility: Do not automatically add controllers
While I do like the idea, it currently relies on every QWidget having QAccessibleWidget as a11y representation. This crashes for example when using the itemviews and asking them for relations. Change-Id: Ie15a78dae620eefb97c646b9e802b13bdf864650 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/accessible/qaccessiblewidget.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/widgets/accessible/qaccessiblewidget.cpp b/src/widgets/accessible/qaccessiblewidget.cpp
index 17ba14de39..bf3c187d62 100644
--- a/src/widgets/accessible/qaccessiblewidget.cpp
+++ b/src/widgets/accessible/qaccessiblewidget.cpp
@@ -377,25 +377,6 @@ QAccessibleWidget::relations(QAccessible::Relation match /*= QAccessible::AllRel
}
}
- if (match & QAccessible::Controller) {
- const QAccessible::Relation rel = QAccessible::Controller;
- QACConnectionObject *connectionObject = (QACConnectionObject*)object();
- const QObjectList senderList = connectionObject->senderList();
- for (int s = 0; s < senderList.count(); ++s) {
- QObject *sender = senderList.at(s);
- if (sender->isWidgetType() && sender != object()) {
- QAccessibleInterface *iface = QAccessible::queryAccessibleInterface(sender);
- QACConnectionObject *connectionSender = (QACConnectionObject*)sender;
- QStringList senderPrimarySignals = static_cast<QAccessibleWidget*>(iface)->d->primarySignals;
- for (int sig = 0; sig < senderPrimarySignals.count(); ++sig) {
- const QByteArray strSignal = senderPrimarySignals.at(sig).toLatin1();
- if (connectionSender->isSender(object(), strSignal.constData()))
- rels.append(qMakePair(iface, rel));
- }
- }
- }
- }
-
if (match & QAccessible::Controlled) {
QObjectList allReceivers;
QACConnectionObject *connectionObject = (QACConnectionObject*)object();