a11y atspi: Send D-Bus reply for "GetCaption" in expected format
Just like for the "GetSummary" case, the argument in the reply for this AT-SPI table method needs to be wrapped in a variant. Fixes this warning from the output of the client side using libatspi: > (accerciser:181933): dbind-WARNING **: 11:50:36.394: atspi_dbus_get_property: > expected a variant when fetching Caption from interface org.a11y.atspi.Table; got (so) Fixes: QTBUG-105520 Pick-to: 6.4 6.3 6.2 Change-Id: I18167359e4cd3bb14a94289ac7481f9e39a18ad0 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
a32a3aa388
commit
7594e8ca4d
@ -2245,10 +2245,10 @@ bool AtSpiAdaptor::tableInterface(QAccessibleInterface *interface, const QString
|
||||
QAccessibleInterface * captionInterface= interface->tableInterface()->caption();
|
||||
if (captionInterface) {
|
||||
QSpiObjectReference ref = QSpiObjectReference(connection, QDBusObjectPath(pathForInterface(captionInterface)));
|
||||
sendReply(connection, message, QVariant::fromValue(ref));
|
||||
sendReply(connection, message, QVariant::fromValue(QDBusVariant(QVariant::fromValue(ref))));
|
||||
} else {
|
||||
sendReply(connection, message, QVariant::fromValue(
|
||||
QSpiObjectReference(connection, QDBusObjectPath(ATSPI_DBUS_PATH_NULL))));
|
||||
sendReply(connection, message, QVariant::fromValue(QDBusVariant(QVariant::fromValue(
|
||||
QSpiObjectReference(connection, QDBusObjectPath(ATSPI_DBUS_PATH_NULL))))));
|
||||
}
|
||||
} else if (function == "GetNColumns"_L1) {
|
||||
connection.send(message.createReply(QVariant::fromValue(QDBusVariant(
|
||||
|
Loading…
Reference in New Issue
Block a user