24 #include <QApplication> 37 const QMessageLogContext & context,
38 const QString & message);
40 static void delay(
int ms);
44 static void keyUp(QWidget* w, Qt::Key
key, Qt::KeyboardModifiers mod,
int ms);
46 static void keyDown(QWidget* w, Qt::Key key, Qt::KeyboardModifiers mod,
int ms);
48 static void keyClick(QWidget* w, Qt::Key key, Qt::KeyboardModifiers mod,
int ms);
50 static void mouseDown(QWidget* w, QPoint pos, Qt::MouseButton btn,
51 Qt::KeyboardModifiers mod,
int ms);
53 static void mouseUp(QWidget* w, QPoint pos, Qt::MouseButton btn,
54 Qt::KeyboardModifiers mod,
int ms);
56 static void mouseMove(QWidget* w, QPoint pos, Qt::MouseButton btn,
57 Qt::KeyboardModifiers mod,
int ms);
59 static void mouseClick(QWidget* w, QPoint pos, Qt::MouseButton btn,
60 Qt::KeyboardModifiers mod,
int ms);
65 QList<QByteArray> Argv;
static void delay(int ms)
static void mouseMove(QWidget *w, QPoint pos, Qt::MouseButton btn, Qt::KeyboardModifiers mod, int ms)
static void simulateEvent(QWidget *w, QEvent *e)
static void keyDown(QWidget *w, Qt::Key key, Qt::KeyboardModifiers mod, int ms)
static void keyUp(QWidget *w, Qt::Key key, Qt::KeyboardModifiers mod, int ms)
QTestApp(int _argc, char **_argv)
static void messageHandler(QtMsgType type, const QMessageLogContext &context, const QString &message)
static void mouseDown(QWidget *w, QPoint pos, Qt::MouseButton btn, Qt::KeyboardModifiers mod, int ms)
static void mouseUp(QWidget *w, QPoint pos, Qt::MouseButton btn, Qt::KeyboardModifiers mod, int ms)
static void keyClick(QWidget *w, Qt::Key key, Qt::KeyboardModifiers mod, int ms)
static void mouseClick(QWidget *w, QPoint pos, Qt::MouseButton btn, Qt::KeyboardModifiers mod, int ms)