summaryrefslogtreecommitdiff
path: root/tests/auto/headersclean/tst_headersclean.cpp
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2012-10-26 13:06:39 +1000
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-26 07:31:02 +0200
commit6c7f668043e44218e2538dc0a453a43d9adf7e45 (patch)
tree6527ec2ac1b029fbeb78f2465f090ed295318efb /tests/auto/headersclean/tst_headersclean.cpp
parent88087611ef6d0c4800de756a850496085c41c282 (diff)
downloadqtscript-6c7f668043e44218e2538dc0a453a43d9adf7e45.tar.gz
Fixed compile with -no-widgets
Disable tests which need QtWidgets when that module is not available. Note that a missing QtWidgets also implies a missing QtScriptTools. Change-Id: I59ae3c25cfebf24ec9f8418b78b8b9f8c1caa7e3 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'tests/auto/headersclean/tst_headersclean.cpp')
-rw-r--r--tests/auto/headersclean/tst_headersclean.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/headersclean/tst_headersclean.cpp b/tests/auto/headersclean/tst_headersclean.cpp
index e964f30..facfa55 100644
--- a/tests/auto/headersclean/tst_headersclean.cpp
+++ b/tests/auto/headersclean/tst_headersclean.cpp
@@ -50,7 +50,10 @@
#include <QtTest/QtTest>
#include <QtScript/QtScript>
-#include <QtScriptTools/QtScriptTools>
+
+#ifdef QT_SCRIPTTOOLS_LIB
+# include <QtScriptTools/QtScriptTools>
+#endif
class tst_HeadersClean: public QObject
{