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>
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);
}
QSpiAccessibleBridge();
virtual ~QSpiAccessibleBridge();
- virtual void setRootObject(QAccessibleInterface *obj);
+ virtual void setRootObject(QObject *obj);
virtual void notifyAccessibilityUpdate(QAccessibleEvent *event);
QDBusConnection dBusConnection() const;