summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestevent.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-09-14 16:49:23 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-09-14 17:00:29 (GMT)
commitbbb471f82159b58bbeb63e68cba1ae0a47faf77b (patch)
tree7bdf617e6ef371ea5117fe715281b780f835153b /src/testlib/qtestevent.h
parent037e5066f8ef5279fae8fd9636a1b710cf187d1f (diff)
downloadQt-bbb471f82159b58bbeb63e68cba1ae0a47faf77b.zip
Qt-bbb471f82159b58bbeb63e68cba1ae0a47faf77b.tar.gz
Qt-bbb471f82159b58bbeb63e68cba1ae0a47faf77b.tar.bz2
Move the QT_GUI_LIB check to qtestevent.h instead of qtestmouse.h.
This allows #including qtestmouse.h and qtestkeyboard directly to get mouse testing. All QtTest headers are still unsupported (you should always include QtTest/QtTest) but we can still fix issues like this. I have verified with the preprocessor that no GUI code is enabled by including QtTest if QT_GUI_LIB isn't defined. This should not bring the MinGW autotest failures back that the a250ca3a3c0 commit was trying to fix. Reviewed-by: Trust Me
Diffstat (limited to 'src/testlib/qtestevent.h')
-rw-r--r--src/testlib/qtestevent.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testlib/qtestevent.h b/src/testlib/qtestevent.h
index 95f2028..55df572 100644
--- a/src/testlib/qtestevent.h
+++ b/src/testlib/qtestevent.h
@@ -48,8 +48,10 @@
#endif
#include <QtTest/qtest_global.h>
+#ifdef QT_GUI_LIB
#include <QtTest/qtestkeyboard.h>
#include <QtTest/qtestmouse.h>
+#endif
#include <QtTest/qtestsystem.h>
#include <QtCore/qlist.h>