From 6462526df9eff416c3ab1dcd111a3e7c7751615d Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Mon, 12 Dec 2011 07:18:03 +0100 Subject: [PATCH] Link against widgets only when available Change-Id: Id7c474fe48bfa99d765267c0e3be1cbf80597548 Reviewed-by: Roberto Raggi --- tools/qmlscene/main.cpp | 4 ++++ tools/qmlscene/qmlscene.pro | 2 +- 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/tools/qmlscene/main.cpp b/tools/qmlscene/main.cpp index a9a03aa..41113f1 100644 --- a/tools/qmlscene/main.cpp +++ b/tools/qmlscene/main.cpp @@ -55,6 +55,10 @@ #include #include +#ifdef QT_WIDGETS_LIB +#include +#endif + #ifdef QML_RUNTIME_TESTING class RenderStatistics diff --git a/tools/qmlscene/qmlscene.pro b/tools/qmlscene/qmlscene.pro index 6ba9c1d..dfc91ce 100644 --- a/tools/qmlscene/qmlscene.pro +++ b/tools/qmlscene/qmlscene.pro @@ -3,7 +3,7 @@ TARGET = qmlscene DESTDIR= $$QT.declarative.bins QT += declarative quick -contains(QT_CONFIG, widgets): QT += widgets +!isEmpty(QT.widgets.name): QT += widgets target.path = $$[QT_INSTALL_BINS] INSTALLS += target -- 1.7.2.5