42 #ifndef QTESTACCESSIBLE_H 43 #define QTESTACCESSIBLE_H 47 #pragma qt_no_master_include 50 #ifndef QT_NO_ACCESSIBILITY 52 #define QTEST_ACCESSIBILITY 54 #define QVERIFY_EVENT(object, child, event) \ 55 QVERIFY(QTestAccessibility::verifyEvent(object, child, (int)event)) 57 #include <QtCore/qlist.h> 58 #include <QtGui/qaccessible.h> 59 #include <QtGui/qapplication.h> 107 return eventList().takeFirst() == ev;
134 qWarning(
"QTEST_ACCESSIBILITY: root Object is not a QApplication!");
136 qWarning(
"QTEST_ACCESSIBILITY: root Object called with 0 pointer");
T qobject_cast(QObject *object)
static QTestAccessibility *& instance()
The QApplication class manages the GUI application's control flow and main settings.
static EventList & eventList()
#define QT_END_NAMESPACE
This macro expands to.
QTestAccessibilityEvent(QObject *o=0, int c=0, int e=0)
void qAddPostRoutine(QtCleanUpFunction p)
QList< QTestAccessibilityEvent > EventList
static RootObjectHandler installRootObjectHandler(RootObjectHandler)
Installs the given handler as the function to be used by setRootObject(), and returns the previously ...
The QObject class is the base class of all Qt objects.
bool operator==(const QTestAccessibilityEvent &o) const
static void rootObjectHandler(QObject *object)
static void clearEvents()
#define QT_BEGIN_NAMESPACE
This macro expands to.
static bool isEmpty(const char *str)
Event
This enum type defines accessible event types.
Q_CORE_EXPORT void qWarning(const char *,...)
#define FALSE
Synonym for false.
static void updateHandler(QObject *o, int c, QAccessible::Event e)
static bool verifyEvent(const QTestAccessibilityEvent &ev)
static UpdateHandler installUpdateHandler(UpdateHandler)
Installs the given handler as the function to be used by updateAccessibility(), and returns the previ...
static bool verifyEvent(QObject *o, int c, int e)
static EventList events()
The QList class is a template class that provides lists.