Correct QSpiAccessibleBridge::setRootObject definition
QSpiAccessibleBridge::setRootObject was defined to require a QAccessibleInterface* as parameter instead of QObject*, as a result of that, QSpiAccessibleBridge::setRootObject did not reimplement QPlatformAccessibility::setRootObject and the adaptor was not initialized. After this change, applications should work with screen readers. Change-Id: Iee3d39f8e0959c1d75b1e682847d266a723c141b Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
This commit is contained in:
parent
3e78f84f4e
commit
f799e57151
@ -93,11 +93,9 @@ QDBusConnection QSpiAccessibleBridge::dBusConnection() const
|
||||
return dbusConnection->connection();
|
||||
}
|
||||
|
||||
void QSpiAccessibleBridge::setRootObject(QAccessibleInterface *interface)
|
||||
void QSpiAccessibleBridge::setRootObject(QObject *obj)
|
||||
{
|
||||
// the interface we get will be for the QApplication object.
|
||||
// we already cache it in the constructor.
|
||||
Q_ASSERT(interface->object() == qApp);
|
||||
Q_UNUSED(obj);
|
||||
dbusAdaptor->setInitialized(true);
|
||||
}
|
||||
|
||||
|
@ -62,7 +62,7 @@ public:
|
||||
QSpiAccessibleBridge();
|
||||
|
||||
virtual ~QSpiAccessibleBridge();
|
||||
virtual void setRootObject(QAccessibleInterface *obj);
|
||||
virtual void setRootObject(QObject *obj);
|
||||
|
||||
virtual void notifyAccessibilityUpdate(QAccessibleEvent *event);
|
||||
QDBusConnection dBusConnection() const;
|
||||
|
Loading…
Reference in New Issue
Block a user