summaryrefslogtreecommitdiffstats
path: root/src/testlib
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-09-14 18:51:07 +0200
committerThiago Macieira <thiago.macieira@nokia.com>2009-09-14 19:02:01 +0200
commit0d2d8f944bee6a13bdb50be2468130e937e0c010 (patch)
tree87759d3c8d2945d501d12a9b7fee1f7cb7f81b79 /src/testlib
parentbbb471f82159b58bbeb63e68cba1ae0a47faf77b (diff)
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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testlib/qtest_gui.h b/src/testlib/qtest_gui.h
index 92ca055f61..13063a808c 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>