diff options
author | Oswald Buddenhagen <oswald.buddenhagen@digia.com> | 2012-09-20 13:50:09 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-09-20 14:33:32 +0200 |
commit | 4ffbd293a20ff8280217dc15a9645473fe357ce0 (patch) | |
tree | 71bde913cc6c42a132c524600f427ff48543bf71 /tests | |
parent | aa5f4313d7293a77162c5819d9e8bd5e37206add (diff) | |
download | qttools-4ffbd293a20ff8280217dc15a9645473fe357ce0.tar.gz |
make headersclean test compile with -no-widgets
Change-Id: Iaa521a06730aebbbdef13c74ed9f6e13653862dd
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/headersclean/headersclean.pro | 4 | ||||
-rw-r--r-- | tests/auto/headersclean/tst_headersclean.cpp | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/auto/headersclean/headersclean.pro b/tests/auto/headersclean/headersclean.pro index 7a1797043..d91cf7214 100644 --- a/tests/auto/headersclean/headersclean.pro +++ b/tests/auto/headersclean/headersclean.pro @@ -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 diff --git a/tests/auto/headersclean/tst_headersclean.cpp b/tests/auto/headersclean/tst_headersclean.cpp index c17799f9c..20054a1f7 100644 --- a/tests/auto/headersclean/tst_headersclean.cpp +++ b/tests/auto/headersclean/tst_headersclean.cpp @@ -49,8 +49,12 @@ #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 { |