Accessibility: Implement GetVersion and GetLocale in app adaptor.
Change-Id: I73a49b22add9e268907025dd0bf7ec76e7fd0c0b Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
This commit is contained in:
parent
fded075ba4
commit
3d466cbcbb
@ -1278,7 +1278,16 @@ bool AtSpiAdaptor::applicationInterface(const QAIPointer &interface, const QStri
|
||||
QDBusMessage reply = message.createReply(QVariant::fromValue(QDBusVariant(QLatin1String("Qt"))));
|
||||
return connection.send(reply);
|
||||
}
|
||||
|
||||
if (function == "GetVersion") {
|
||||
Q_ASSERT(message.signature() == "ss");
|
||||
QDBusMessage reply = message.createReply(QVariant::fromValue(QDBusVariant(QLatin1String(qVersion()))));
|
||||
return connection.send(reply);
|
||||
}
|
||||
if (function == "GetLocale") {
|
||||
Q_ASSERT(message.signature() == "u");
|
||||
QDBusMessage reply = message.createReply(QVariant::fromValue(QLocale().name()));
|
||||
return connection.send(reply);
|
||||
}
|
||||
qAtspiDebug() << "AtSpiAdaptor::applicationInterface " << message.path() << interface << function;
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user