Send string to Atspi DBus interface on value changed for comboboxes
Orca only accepts string or list type for object:property-change:accessible-name events. This fixes NameChanged not being announced by Orca. Pick-to: 6.4 6.2 Change-Id: Ib30fed94aad70b98400deec5e31630b4f8c22e26 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
1bf5470778
commit
c6b1c33814
@ -1042,7 +1042,9 @@ void AtSpiAdaptor::notify(QAccessibleEvent *event)
|
||||
// Combo Box with AT-SPI likes to be special
|
||||
// It requires a name-change to update caches and then selection-changed
|
||||
QString path = pathForInterface(iface);
|
||||
QVariantList args1 = packDBusSignalArguments("accessible-name"_L1, 0, 0, variantForPath(path));
|
||||
QVariantList args1 = packDBusSignalArguments(
|
||||
"accessible-name"_L1, 0, 0,
|
||||
QVariant::fromValue(QDBusVariant(iface->text(QAccessible::Name))));
|
||||
sendDBusSignal(path, ATSPI_DBUS_INTERFACE_EVENT_OBJECT ""_L1,
|
||||
"PropertyChange"_L1, args1);
|
||||
QVariantList args2 = packDBusSignalArguments(QString(), 0, 0, QVariant::fromValue(QDBusVariant(QVariant(0))));
|
||||
|
Loading…
Reference in New Issue
Block a user