mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 10:22:55 +00:00
export the test component event classes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
d5b194b53a
commit
0f6a33782b
7 changed files with 6 additions and 18 deletions
|
@ -25,10 +25,8 @@
|
|||
#include "qtest_global.h"
|
||||
#include "qbenchmarkmetric.h"
|
||||
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
||||
namespace QTest {
|
||||
const char * benchmarkMetricName(QBenchmarkMetric metric);
|
||||
const char * benchmarkMetricUnit(QBenchmarkMetric metric);
|
||||
|
@ -36,5 +34,4 @@ namespace QTest {
|
|||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
||||
#endif // QBENCHMARK_H
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
||||
namespace QTest
|
||||
{
|
||||
|
||||
|
@ -66,5 +65,4 @@ extern void qt_x11_wait_for_window_manager(QWidget *w);
|
|||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
@ -24,15 +24,12 @@
|
|||
|
||||
#include <QtCore/qglobal.h>
|
||||
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
||||
#define QTEST_ASSERT(cond) do {if(!(cond))qt_assert(#cond,__FILE__,__LINE__);} while (0)
|
||||
|
||||
#define QTEST_ASSERT_X(cond, where, what) do {if(!(cond))qt_assert_x(where, what,__FILE__,__LINE__);} while (0)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
@ -63,5 +63,4 @@ private:
|
|||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
@ -27,10 +27,8 @@
|
|||
#include <QtCore/qnamespace.h>
|
||||
#include <QtCore/qmetatype.h>
|
||||
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
||||
#define QVERIFY(statement) \
|
||||
do {\
|
||||
if (!QTest::qVerify((statement), #statement, "", __FILE__, __LINE__))\
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
||||
class QTestEvent
|
||||
class Q_TEST_EXPORT QTestEvent
|
||||
{
|
||||
public:
|
||||
virtual void simulate(QWidget *w) = 0;
|
||||
|
@ -44,7 +44,7 @@ public:
|
|||
};
|
||||
|
||||
#ifdef QT_GUI_LIB
|
||||
class QTestKeyEvent: public QTestEvent
|
||||
class Q_TEST_EXPORT QTestKeyEvent : public QTestEvent
|
||||
{
|
||||
public:
|
||||
inline QTestKeyEvent(QTest::KeyAction action, Qt::Key key, Qt::KeyboardModifiers modifiers, int delay)
|
||||
|
@ -70,7 +70,7 @@ protected:
|
|||
Qt::Key _key;
|
||||
};
|
||||
|
||||
class QTestKeyClicksEvent: public QTestEvent
|
||||
class Q_TEST_EXPORT QTestKeyClicksEvent : public QTestEvent
|
||||
{
|
||||
public:
|
||||
inline QTestKeyClicksEvent(const QString &keys, Qt::KeyboardModifiers modifiers, int delay)
|
||||
|
@ -88,7 +88,7 @@ private:
|
|||
int _delay;
|
||||
};
|
||||
|
||||
class QTestMouseEvent: public QTestEvent
|
||||
class Q_TEST_EXPORT QTestMouseEvent : public QTestEvent
|
||||
{
|
||||
public:
|
||||
inline QTestMouseEvent(QTest::MouseAction action, Qt::MouseButton button,
|
||||
|
@ -111,7 +111,7 @@ private:
|
|||
#endif //QT_GUI_LIB
|
||||
|
||||
|
||||
class QTestDelayEvent: public QTestEvent
|
||||
class Q_TEST_EXPORT QTestDelayEvent : public QTestEvent
|
||||
{
|
||||
public:
|
||||
inline QTestDelayEvent(int msecs): _delay(msecs) {}
|
||||
|
@ -123,7 +123,7 @@ private:
|
|||
int _delay;
|
||||
};
|
||||
|
||||
class QTestEventList: public QList<QTestEvent *>
|
||||
class Q_TEST_EXPORT QTestEventList : public QList<QTestEvent *>
|
||||
{
|
||||
public:
|
||||
inline QTestEventList() : QList<QTestEvent *>() {}
|
||||
|
|
|
@ -163,7 +163,6 @@ namespace QTest
|
|||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
||||
#endif // QT_GUI_LIB
|
||||
|
||||
#endif // QTESTKEYBOARD_H
|
||||
|
|
Loading…
Add table
Reference in a new issue