diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2010-11-03 13:47:42 +0100 |
---|---|---|
committer | Kai Koehne <kai.koehne@nokia.com> | 2010-11-03 14:07:31 +0100 |
commit | d0baf43b6aa3ef2afb87ee8ec4567d2625731a60 (patch) | |
tree | 1932b155f2fbb0f7521f33ec43ae931dab3c3cd9 | |
parent | 26f79571e62094ca236ba1537a9eeb795dc043d8 (diff) | |
download | qt-creator-d0baf43b6aa3ef2afb87ee8ec4567d2625731a60.tar.gz |
Qml Wizard: Turn error about qml debugging getting disabled into a warning
Qml Debugging requires 4.7.1, and the path of qmljsdebugger being
specified on the command line. Just disable debugging if this
isn't the case instead of bailing out an error.
Reviewed-by: dt
-rw-r--r-- | share/qtcreator/templates/qmlapp/qmlapplicationviewer/qmlapplicationviewer.pri | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/share/qtcreator/templates/qmlapp/qmlapplicationviewer/qmlapplicationviewer.pri b/share/qtcreator/templates/qmlapp/qmlapplicationviewer/qmlapplicationviewer.pri index 09fd0efa79..246f25e784 100644 --- a/share/qtcreator/templates/qmlapp/qmlapplicationviewer/qmlapplicationviewer.pri +++ b/share/qtcreator/templates/qmlapp/qmlapplicationviewer/qmlapplicationviewer.pri @@ -34,20 +34,20 @@ contains(DEFINES, QMLJSDEBUGGER) { CONFIG(debug, debug|release) { !minQtVersion(4, 7, 1) { warning() + warning("Disabling QML debugging:") + warning() warning("Debugging QML requires the qmljsdebugger library that ships with Qt Creator.") warning("This library requires Qt 4.7.1 or newer.") warning() - - error("Qt version $$QT_VERSION too old for QmlJS Debugging. Aborting.") - } - isEmpty(QMLJSDEBUGGER_PATH) { + DEFINES -= QMLJSDEBUGGER + } else:isEmpty(QMLJSDEBUGGER_PATH) { + warning() + warning("Disabling QML debugging:") warning() warning("Debugging QML requires the qmljsdebugger library that ships with Qt Creator.") warning("Please specify its location on the qmake command line, eg") warning(" qmake -r QMLJSDEBUGGER_PATH=$CREATORDIR/share/qtcreator/qmljsdebugger") warning() - - error("QMLJSDEBUGGER defined, but no QMLJSDEBUGGER_PATH set on command line. Aborting.") DEFINES -= QMLJSDEBUGGER } else { include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri) |