45 #ifndef QT_NO_ACCESSIBILITY 50 #include "private/qfactoryloader_p.h" 61 static bool isInit =
false;
69 if (
qgetenv(
"QT_ACCESSIBILITY") !=
"1")
73 for (
int i = 0; i < l.
count(); ++i) {
75 qobject_cast<QAccessibleBridgeFactoryInterface*>(loader()->instance(l.
at(i)))) {
78 bridges()->append(bridge);
99 if (!bridges() || bridges()->
isEmpty())
117 for (
int i = 0; i < bridges()->count(); ++i)
118 bridges()->at(i)->notifyAccessibilityUpdate(reason, iface, who);
136 for (
int i = 0; i < bridges()->count(); ++i) {
138 bridges()->at(i)->setRootObject(iface);
144 #endif // QT_NO_ACCESSIBILITY static void updateAccessibility(QObject *, int who, Event reason)
Notifies accessibility clients about a change in object's accessibility information.
Q_CORE_EXPORT QByteArray qgetenv(const char *varName)
#define QT_END_NAMESPACE
This macro expands to.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
int count(const T &t) const
Returns the number of occurrences of value in the list.
The QVector class is a template class that provides a dynamic array.
The QObject class is the base class of all Qt objects.
#define QT_BEGIN_NAMESPACE
This macro expands to.
static bool isEmpty(const char *str)
virtual int navigate(RelationFlag relation, int index, QAccessibleInterface **iface) const =0
Navigates from this object to an object that has a relationship relation to this object, and returns the respective object in target.
Event
This enum type defines accessible event types.
#define Q_GLOBAL_STATIC(TYPE, NAME)
Declares a global static variable with the given type and name.
const T & at(int i) const
Returns the item at index position i in the list.
The QStringList class provides a list of strings.
The QAccessibleBridge class is the base class for accessibility back-ends.
static QAccessibleInterface * queryAccessibleInterface(QObject *)
If a QAccessibleInterface implementation exists for the given object, this function returns a pointer...
#define QAccessibleBridgeFactoryInterface_iid
static void setRootObject(QObject *)
Sets the root accessible object of this application to object.
The QAccessibleInterface class defines an interface that exposes information about accessible objects...
Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader,(QAccessibleBridgeFactoryInterface_iid, QLatin1String("/accessiblebridge"))) static bool isInit
Q_OUTOFLINE_TEMPLATE void qDeleteAll(ForwardIterator begin, ForwardIterator end)
static UpdateHandler updateHandler
static RootObjectHandler rootObjectHandler