diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-09-14 16:51:07 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-09-14 17:02:01 (GMT) |
commit | 0d2d8f944bee6a13bdb50be2468130e937e0c010 (patch) | |
tree | 87759d3c8d2945d501d12a9b7fee1f7cb7f81b79 /src/testlib | |
parent | bbb471f82159b58bbeb63e68cba1ae0a47faf77b (diff) | |
download | Qt-0d2d8f944bee6a13bdb50be2468130e937e0c010.zip Qt-0d2d8f944bee6a13bdb50be2468130e937e0c010.tar.gz Qt-0d2d8f944bee6a13bdb50be2468130e937e0c010.tar.bz2 |
Make qtest_gui.h define QT_GUI_LIB to enable GUI tests.
This also creates a new header called QtTest/QtTestGui. This header is
not supported. You should #include <QtTest/QtTest>. But if you're
using a build system that is not qmake, QT_GUI_LIB isn't defined, so
it's possibly easier to #include this new header.
Reviewed-by: Trust Me
Diffstat (limited to 'src/testlib')
-rw-r--r-- | src/testlib/qtest_gui.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testlib/qtest_gui.h b/src/testlib/qtest_gui.h index 92ca055..13063a8 100644 --- a/src/testlib/qtest_gui.h +++ b/src/testlib/qtest_gui.h @@ -42,6 +42,14 @@ #ifndef QTEST_GUI_H #define QTEST_GUI_H +// enable GUI features +#ifndef QT_GUI_LIB +#define QT_GUI_LIB +#endif +#if 0 +#pragma qt_class(QtTestGui) +#endif + #include <QtTest/qtestassert.h> #include <QtTest/qtest.h> #include <QtTest/qtestevent.h> |