diff options
author | Frederik Gladhorn <frederik.gladhorn@nokia.com> | 2012-05-10 21:36:24 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-20 09:18:08 +0200 |
commit | 8b24ed162cff3df7473345dedc14a412fabe8936 (patch) | |
tree | 3ad84734a0689e287b4ae960cc62234d8bf1d09f /tests | |
parent | 3db8877d286b673bf8a54e7514e8bb70223e4e8a (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 'tests')
-rw-r--r-- | tests/auto/other/qaccessibility/tst_qaccessibility.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp index 4607be4a7a..2a4013347e 100644 --- a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp +++ b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp @@ -906,30 +906,6 @@ void tst_QAccessibility::buttonTest() toggletool.setText("Toggle"); toggletool.setMinimumSize(20,20); - // test Controller/Controlled relations - { - QCheckBox toggler("Toggle me!", &window); - bool ok = connect(&pushButton, SIGNAL(clicked()), &toggler, SLOT(toggle())); - QCOMPARE(ok, true); - QAccessibleInterface *iface = QAccessible::queryAccessibleInterface(&toggler); - QVERIFY(iface); - QCOMPARE(iface->role(), QAccessible::CheckBox); - QAccessibleInterface *buttonIFace = relatedInterface(iface, QAccessible::Controller); - QVERIFY(buttonIFace); - QCOMPARE(buttonIFace->role(), QAccessible::Button); - QCOMPARE(buttonIFace->object(), &pushButton); - delete buttonIFace; - delete iface; - - buttonIFace = QAccessible::queryAccessibleInterface(&pushButton); - QVERIFY(buttonIFace); - QCOMPARE(buttonIFace->role(), QAccessible::Button); - iface = relatedInterface(buttonIFace, QAccessible::Controlled); - QVERIFY(iface); - QCOMPARE(iface->object(), &toggler); - - } - // test push button QAccessibleInterface* interface = QAccessible::queryAccessibleInterface(&pushButton); QAccessibleActionInterface* actionInterface = interface->actionInterface(); |