summaryrefslogtreecommitdiffstats
path: root/tests/auto/tools/moc/no-keywords.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2017-01-09 11:39:46 +0100
committerUlf Hermann <ulf.hermann@qt.io>2018-03-21 10:31:20 +0000
commit90ec3aba06d9832b802df3e5eb77221b2bb31bdb (patch)
tree9cc17434c494e35a9470202bb97df2572801979a /tests/auto/tools/moc/no-keywords.h
parent955cf40b18ba37c46d692206c5fc39e93bfda01c (diff)
Clean up the moc "no-keywords" test
We can use the QT_LIB_FOO #defines instead of our own WITH_FOO ones to determine if a library is available. Also, it doesn't currently make sense to refer to libraries which are not part of qtbase here. We might add that in the future, but QtScript (being deprecated) is probably not the first one we should add. Change-Id: I7f2397ca5499ba6003088478161182e960e815fb Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'tests/auto/tools/moc/no-keywords.h')
-rw-r--r--tests/auto/tools/moc/no-keywords.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/auto/tools/moc/no-keywords.h b/tests/auto/tools/moc/no-keywords.h
index d31063665b..ca77056503 100644
--- a/tests/auto/tools/moc/no-keywords.h
+++ b/tests/auto/tools/moc/no-keywords.h
@@ -37,16 +37,19 @@
#define slots Baz
#define emit Yoyodyne
+#include <QtCore/QtCore>
+
+#ifdef QT_CONCURRENT_LIB
#include <QtConcurrent/QtConcurrent>
-#include <QtCore>
+#endif
+#ifdef QT_NETWORK_LIB
#include <QtNetwork/QtNetwork>
+#endif
+#ifdef QT_SQL_LIB
#include <QtSql/QtSql>
-//#include <QtSvg>
-#if defined(WITH_DBUS)
-#include <QtDBus>
#endif
-#ifdef QT_SCRIPT_LIB
-#include <QtScript>
+#ifdef QT_DBUS_LIB
+#include <QtDBus/QtDBus>
#endif
#undef signals