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:
parent
6e713cf03d
commit
44cc60515a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user