Accessibility: Ignore TableModelChanges on Linux for now.

This part will be improved in Qt 5.1. Currently it just spits
out debug messages for unhandled events.

Change-Id: I22475317ab54a8223d42536e1cee3f93a969e497
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
This commit is contained in:
Frederik Gladhorn 2013-01-31 13:48:09 +01:00 committed by The Qt Project
parent e74bf9497c
commit 681085c198

View File

@ -1104,22 +1104,10 @@ void AtSpiAdaptor::notify(QAccessibleEvent *event)
}
break;
}
// case QAccessible::TableModelChanged: {
// // This is rather evil. We don't send data and hope that at-spi fetches the right child.
// // This hack fails when a row gets removed and a different one added in its place.
// QDBusVariant data;
// emit ChildrenChanged("add", 0, 0, data, spiBridge->getRootReference());
// break;
// }
// case QAccessible::TableModelChanged:
// QAccessible2::TableModelChange change = interface->tableInterface()->modelChange();
// // assume we should reset if everything is 0
// if (change.firstColumn == 0 && change.firstRow == 0 && change.lastColumn == 0 && change.lastRow == 0) {
// notifyAboutDestruction(accessible);
// notifyAboutCreation(accessible);
// }
// break;
case QAccessible::TableModelChanged:
// For now we ignore this event and hope that
// setting manages_descendants works.
break;
case QAccessible::ParentChanged:
break;
case QAccessible::DialogStart: