summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2011-12-12 07:18:03 +0100
committerQt by Nokia <qt-info@nokia.com>2011-12-12 11:39:15 +0100
commit6462526df9eff416c3ab1dcd111a3e7c7751615d (patch)
tree3f301a7349f878cb69c48516b9ffd209ef779f6a /tools
parent841e6ae8ac76210af7d8475befd8fd97f6b7ab97 (diff)
Link against widgets only when available
Change-Id: Id7c474fe48bfa99d765267c0e3be1cbf80597548 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/qmlscene/main.cpp4
-rw-r--r--tools/qmlscene/qmlscene.pro2
2 files changed, 5 insertions, 1 deletions
diff --git a/tools/qmlscene/main.cpp b/tools/qmlscene/main.cpp
index a9a03aac6c..41113f16c0 100644
--- a/tools/qmlscene/main.cpp
+++ b/tools/qmlscene/main.cpp
@@ -55,6 +55,10 @@
#include <QtQuick/qquickitem.h>
#include <QtQuick/qquickview.h>
+#ifdef QT_WIDGETS_LIB
+#include <QtWidgets/QFileDialog>
+#endif
+
#ifdef QML_RUNTIME_TESTING
class RenderStatistics
diff --git a/tools/qmlscene/qmlscene.pro b/tools/qmlscene/qmlscene.pro
index 6ba9c1d7bc..dfc91ceceb 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