44 #ifndef QT_NO_ACCESSIBILITY 80 if (!
qstrcmp(member.
tag(),
"QACCESSIBLE_SLOT")) {
82 actionList.
prepend(defaultAction);
135 qWarning(
"QAccessibleInterface is invalid. Crash pending...");
145 return !
d->object.isNull();
174 {
"Press",
"",
"",
"",
"Space" },
175 {
"SetFocus",
"Passes focus to this widget",
"",
"",
"" },
176 {
"Increase",
"",
"",
"",
"" },
177 {
"Decrease",
"",
"",
"",
"" },
178 {
"Accept",
"",
"",
"",
"" },
179 {
"Cancel",
"",
"",
"",
"" },
180 {
"Select",
"",
"",
"",
"" },
181 {
"ClearSelection",
"",
"",
"",
"" },
182 {
"RemoveSelection",
"",
"",
"",
"" },
183 {
"ExtendSelection",
"",
"",
"",
"" },
184 {
"AddToSelection",
"",
"",
"",
"" }
190 if (child || action > FirstStandardAction || action < LastStandardAction || t > Accelerator)
222 for (
int i = 0; i < tlw.
count(); ++i) {
254 for (
int i = 0; i < tlw.
count(); ++i) {
271 if (child && !otherChild)
273 if (!child && otherChild)
275 if (!child && !otherChild)
280 if (tlw.
contains(qobject_cast<QWidget*>(o)))
283 for (
int i = 0; i < tlw.
count(); ++i) {
310 if (tlw.
count() >= entry)
311 targetObject = tlw.
at(entry-1);
323 return *target ? 0 : -1;
361 if (action == 0 || action == 1) {
378 if ((action == 0 || action == 1) && !child)
switch (text) {
414 #endif //QT_NO_ACCESSIBILITY
static QWidgetList topLevelWidgets()
#define QT_END_NAMESPACE
This macro expands to.
int childCount() const
Reimplemented Function
Relation relationTo(int, const QAccessibleInterface *, int) const
Reimplemented Function
virtual ~QAccessibleObjectEx()
static QString applicationFilePath()
Returns the file path of the application executable.
QString text(Text t, int child) const
Reimplemented Function
QObject * object() const
Returns a pointer to the QObject this interface implementation provides information for...
void setText(Text t, int child, const QString &text)
Reimplemented Function
The QByteArray class provides an array of bytes.
Role
This enum defines the role of an accessible object.
static QWidget * activeWindow()
Returns the application top-level window that has the keyboard input focus, or 0 if no application wi...
int userActionCount(int child) const
Returns the number of custom actions of the object, or of the object's child if child is not 0...
QAccessibleApplication()
Creates a QAccessibleApplication for the QApplication object referenced by qApp.
static QString tr(const char *sourceText, const char *comment=0, int n=-1)
int count(const T &t) const
Returns the number of occurrences of value in the list.
The QString class provides a Unicode character string.
QList< QByteArray > actionList() const
virtual QObject * object() const =0
Returns a pointer to the QObject this interface implementation provides information for...
The QObject class is the base class of all Qt objects.
static const char *const action_text[][5]
bool doAction(int action, int child, const QVariantList ¶ms)
Reimplemented Function
QString actionText(int action, Text t, int child) const
Reimplemented Function
void setText(Text t, int child, const QString &text)
Sets the text property t of the object, or of the object's child if child is not 0, to text.
Role role(int child) const
Reimplemented Function
int navigate(RelationFlag, int, QAccessibleInterface **) const
Reimplemented Function
QAccessibleObject(QObject *object)
Creates a QAccessibleObject for object.
void append(const T &t)
Inserts value at the end of the list.
#define QT_BEGIN_NAMESPACE
This macro expands to.
int childAt(int x, int y) const
Reimplemented Function
QBool contains(const T &t) const
Returns true if the list contains an occurrence of value; otherwise returns false.
int indexOfChild(const QAccessibleInterface *) const
Reimplemented Function
RelationFlag
This enum type defines bit flags that can be combined to indicate the relationship between two access...
void prepend(const T &t)
Inserts value at the beginning of the list.
const T & at(int i) const
Returns the item at index position i in the list.
Q_CORE_EXPORT void qWarning(const char *,...)
bool doAction(int action, int child, const QVariantList ¶ms)
Reimplemented Function
int userActionCount(int child) const
Reimplemented Function
static QWidgetList topLevelWidgets()
Returns a list of the top-level widgets (windows) in the application.
bool contains(const QPoint &p, bool proper=false) const
Returns true if the given point is inside or on the edge of the rectangle, otherwise returns false...
QPointer< QObject > object
bool doAction(int action, int child, const QVariantList ¶ms)
Asks the object, or the object's child if child is not 0, to execute action using the parameters...
static QAccessibleInterface * queryAccessibleInterface(QObject *)
If a QAccessibleInterface implementation exists for the given object, this function returns a pointer...
QString actionText(int action, Text t, int child) const
Reimplemented Function
QAccessibleObjectPrivate * d
bool isWidgetType() const
Returns true if the object is a widget; otherwise returns false.
int indexOf(const T &t, int from=0) const
Returns the index position of the first occurrence of value in the list, searching forward from index...
QRect rect(int child) const
Returns the geometry of the object, or of the object's child if child is not 0.
The QAccessibleInterface class defines an interface that exposes information about accessible objects...
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
The QRect class defines a rectangle in the plane using integer precision.
QAccessibleObjectEx(QObject *object)
The QAccessibleObject class implements parts of the QAccessibleInterface for QObjects.
int userActionCount(int child) const
Reimplemented Function
QObject * object() const
Reimplemented Function
int qstrcmp(const QByteArray &str1, const char *str2)
bool isValid() const
Returns true if all the data necessary to use this interface implementation is valid (e...
static QString applicationName()
virtual ~QAccessibleObject()
Destroys the QAccessibleObject.
bool isValid() const
Reimplemented Function
State state(int child) const
Reimplemented Function
QRect rect(int child) const
Reimplemented Function
QList< T > findChildren(const QString &aName=QString()) const
Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects.
QString actionText(int action, Text t, int child) const
Returns the text property t of the action action supported by the object, or of the object's child if...
The Text item allows you to add formatted text to a scene.