make headersclean test compile with -no-widgets
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>
Thu, 20 Sep 2012 11:50:09 +0000 (13:50 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 20 Sep 2012 12:33:32 +0000 (14:33 +0200)
Change-Id: Iaa521a06730aebbbdef13c74ed9f6e13653862dd
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
tests/auto/headersclean/headersclean.pro
tests/auto/headersclean/tst_headersclean.cpp

index 7a17970..d91cf72 100644 (file)
@@ -1,5 +1,7 @@
 TARGET = tst_headersclean
 CONFIG += testcase
 SOURCES  += tst_headersclean.cpp
-QT = core help testlib
+QT = core testlib
+!isEmpty(QT.help.name): QT += help
+!isEmpty(QT.designer.name): QT += designer
 DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
index c17799f..20054a1 100644 (file)
 #include <QtCore/QtCore>
 #include <QtTest/QtTest>
 
+#ifdef QT_DESIGNER_LIB
 #include <QtDesigner/QtDesigner>
+#endif
+#ifdef QT_HELP_LIB
 #include <QtHelp/QtHelp>
+#endif
 
 class tst_HeadersClean: public QObject
 {