Handle disabled state change

Modified AtSpiAdaptor::notify to handle enabling and disabling widgets.

Change-Id: I9a23f74d891aaf123d7fc094bdf63e384e1d65fe
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
This commit is contained in:
José Millán Soto 2012-10-26 16:56:00 +02:00 committed by The Qt Project
parent 6e713cf03d
commit 44cc60515a

View File

@ -1094,6 +1094,13 @@ void AtSpiAdaptor::notify(QAccessibleEvent *event)
int isActive = iface->state().active;
notifyStateChange(iface, QLatin1String("active"), isActive);
} else if (stateChange.disabled) {
QAIPointer iface = QAIPointer(event->accessibleInterface());
QAccessible::State state = iface->state();
bool enabled = !state.disabled;
notifyStateChange(iface, QLatin1String("enabled"), enabled);
notifyStateChange(iface, QLatin1String("sensitive"), enabled);
}
}
break;