Skip to content

Commit 0f6a337

Browse files
committed
export the test component event classes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
1 parent d5b194b commit 0f6a337

7 files changed

+6
-18
lines changed

src/test/qbenchmarkmetric_p.h

-3
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,13 @@
2525
#include "qtest_global.h"
2626
#include "qbenchmarkmetric.h"
2727

28-
2928
QT_BEGIN_NAMESPACE
3029

31-
3230
namespace QTest {
3331
const char * benchmarkMetricName(QBenchmarkMetric metric);
3432
const char * benchmarkMetricUnit(QBenchmarkMetric metric);
3533
}
3634

3735
QT_END_NAMESPACE
3836

39-
4037
#endif // QBENCHMARK_H

src/test/qtest_gui.h

-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838

3939
QT_BEGIN_NAMESPACE
4040

41-
4241
namespace QTest
4342
{
4443

@@ -66,5 +65,4 @@ extern void qt_x11_wait_for_window_manager(QWidget *w);
6665

6766
QT_END_NAMESPACE
6867

69-
7068
#endif

src/test/qtestassert.h

-3
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,12 @@
2424

2525
#include <QtCore/qglobal.h>
2626

27-
2827
QT_BEGIN_NAMESPACE
2928

30-
3129
#define QTEST_ASSERT(cond) do {if(!(cond))qt_assert(#cond,__FILE__,__LINE__);} while (0)
3230

3331
#define QTEST_ASSERT_X(cond, where, what) do {if(!(cond))qt_assert_x(where, what,__FILE__,__LINE__);} while (0)
3432

3533
QT_END_NAMESPACE
3634

37-
3835
#endif

src/test/qtestbasicstreamer.h

-1
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,4 @@ class Q_TEST_EXPORT QTestBasicStreamer
6363

6464
QT_END_NAMESPACE
6565

66-
6766
#endif

src/test/qtestcase.h

-2
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@
2727
#include <QtCore/qnamespace.h>
2828
#include <QtCore/qmetatype.h>
2929

30-
3130
QT_BEGIN_NAMESPACE
3231

33-
3432
#define QVERIFY(statement) \
3533
do {\
3634
if (!QTest::qVerify((statement), #statement, "", __FILE__, __LINE__))\

src/test/qtestevent.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
QT_BEGIN_NAMESPACE
3535

3636

37-
class QTestEvent
37+
class Q_TEST_EXPORT QTestEvent
3838
{
3939
public:
4040
virtual void simulate(QWidget *w) = 0;
@@ -44,7 +44,7 @@ class QTestEvent
4444
};
4545

4646
#ifdef QT_GUI_LIB
47-
class QTestKeyEvent: public QTestEvent
47+
class Q_TEST_EXPORT QTestKeyEvent : public QTestEvent
4848
{
4949
public:
5050
inline QTestKeyEvent(QTest::KeyAction action, Qt::Key key, Qt::KeyboardModifiers modifiers, int delay)
@@ -70,7 +70,7 @@ class QTestKeyEvent: public QTestEvent
7070
Qt::Key _key;
7171
};
7272

73-
class QTestKeyClicksEvent: public QTestEvent
73+
class Q_TEST_EXPORT QTestKeyClicksEvent : public QTestEvent
7474
{
7575
public:
7676
inline QTestKeyClicksEvent(const QString &keys, Qt::KeyboardModifiers modifiers, int delay)
@@ -88,7 +88,7 @@ class QTestKeyClicksEvent: public QTestEvent
8888
int _delay;
8989
};
9090

91-
class QTestMouseEvent: public QTestEvent
91+
class Q_TEST_EXPORT QTestMouseEvent : public QTestEvent
9292
{
9393
public:
9494
inline QTestMouseEvent(QTest::MouseAction action, Qt::MouseButton button,
@@ -111,7 +111,7 @@ class QTestMouseEvent: public QTestEvent
111111
#endif //QT_GUI_LIB
112112

113113

114-
class QTestDelayEvent: public QTestEvent
114+
class Q_TEST_EXPORT QTestDelayEvent : public QTestEvent
115115
{
116116
public:
117117
inline QTestDelayEvent(int msecs): _delay(msecs) {}
@@ -123,7 +123,7 @@ class QTestDelayEvent: public QTestEvent
123123
int _delay;
124124
};
125125

126-
class QTestEventList: public QList<QTestEvent *>
126+
class Q_TEST_EXPORT QTestEventList : public QList<QTestEvent *>
127127
{
128128
public:
129129
inline QTestEventList() : QList<QTestEvent *>() {}

src/test/qtestkeyboard.h

-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ namespace QTest
163163

164164
QT_END_NAMESPACE
165165

166-
167166
#endif // QT_GUI_LIB
168167

169168
#endif // QTESTKEYBOARD_H

0 commit comments

Comments
 (0)