From 3dc36ccf4ebaec07845263a2fbc90519604d333d Mon Sep 17 00:00:00 2001 From: Rohan McGovern Date: Mon, 30 Jul 2012 09:59:24 +1000 Subject: Fixed compile without QtWidgets, unify "is module available?" syntax If QtWidgets is not available, disable a few examples which need it. Standardize on isEmpty(QT.widgets.name) in preference to contains(QT_CONFIG,no-widgets). Change-Id: I00335149a75911dd4ab42a4ce659889d548a8be3 Reviewed-by: Kalle Lehtonen Reviewed-by: Toby Tomkins --- examples/script/script.pro | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'examples') diff --git a/examples/script/script.pro b/examples/script/script.pro index a12d750..9e66a61 100644 --- a/examples/script/script.pro +++ b/examples/script/script.pro @@ -7,6 +7,12 @@ SUBDIRS = customclass symbian: SUBDIRS = context2d +isEmpty(QT.widgets.name):SUBDIRS -= \ + context2d \ + defaultprototypes \ + helloscript \ + qscript + # install target.path = $$[QT_INSTALL_EXAMPLES]/qtscript/script sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS script.pro README -- cgit v1.2.3