From 4ffbd293a20ff8280217dc15a9645473fe357ce0 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Thu, 20 Sep 2012 13:50:09 +0200 Subject: [PATCH] make headersclean test compile with -no-widgets Change-Id: Iaa521a06730aebbbdef13c74ed9f6e13653862dd Reviewed-by: Sergio Ahumada Reviewed-by: Oswald Buddenhagen --- tests/auto/headersclean/headersclean.pro | 4 +++- tests/auto/headersclean/tst_headersclean.cpp | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/auto/headersclean/headersclean.pro b/tests/auto/headersclean/headersclean.pro index 7a17970..d91cf72 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 c17799f..20054a1 100644 --- a/tests/auto/headersclean/tst_headersclean.cpp +++ b/tests/auto/headersclean/tst_headersclean.cpp @@ -49,8 +49,12 @@ #include #include +#ifdef QT_DESIGNER_LIB #include +#endif +#ifdef QT_HELP_LIB #include +#endif class tst_HeadersClean: public QObject { -- 2.7.4