Link against widgets only when available

Change-Id: Id7c474fe48bfa99d765267c0e3be1cbf80597548
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
Gunnar Sletta 2011-12-12 07:18:03 +01:00 committed by Qt by Nokia
parent 841e6ae8ac
commit 6462526df9
2 changed files with 5 additions and 1 deletions

View File

@ -55,6 +55,10 @@
#include <QtQuick/qquickitem.h> #include <QtQuick/qquickitem.h>
#include <QtQuick/qquickview.h> #include <QtQuick/qquickview.h>
#ifdef QT_WIDGETS_LIB
#include <QtWidgets/QFileDialog>
#endif
#ifdef QML_RUNTIME_TESTING #ifdef QML_RUNTIME_TESTING
class RenderStatistics class RenderStatistics

View File

@ -3,7 +3,7 @@ TARGET = qmlscene
DESTDIR= $$QT.declarative.bins DESTDIR= $$QT.declarative.bins
QT += declarative quick QT += declarative quick
contains(QT_CONFIG, widgets): QT += widgets !isEmpty(QT.widgets.name): QT += widgets
target.path = $$[QT_INSTALL_BINS] target.path = $$[QT_INSTALL_BINS]
INSTALLS += target INSTALLS += target