QmlDesigner: Skip QmlDesigner for Qt < 5.3

Otherwise it will not build because it requires QQuickWidget.

Change-Id: Idbe40355af3ca3507268e7d002b04e76d90c45b1
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
Thomas Hartmann
2014-06-25 15:13:45 +02:00
parent a7b882315d
commit 0f8251e133
2 changed files with 10 additions and 3 deletions

4
README
View File

@@ -12,7 +12,9 @@ Mac OS X 10.7 or later
Building the sources requires Qt 5.2.0 or later. Building the sources requires Qt 5.2.0 or later.
It is also possible to build with Qt 4.8.x, but in that case the Welcome mode, It is also possible to build with Qt 4.8.x, but in that case the Welcome mode,
Qt Quick Designer, QML Profiler, and the WinRT and Qbs support are disabled. QML Profiler, and the WinRT and Qbs support are disabled.
The Qt Quick Designer can only be compiled with Qt 5.3.1 or later , because
it requires QQuickWidget.
Compiling Qt Creator Compiling Qt Creator
==================== ====================

View File

@@ -76,13 +76,18 @@ isEmpty(IDE_PACKAGE_MODE) {
updateinfo updateinfo
} }
minQtVersion(5, 3, 1) {
SUBDIRS += qmldesigner
} else {
warning("QmlDesigner plugin has been disabled.")
warning("This plugin requires Qt 5.3.1 or newer.")
}
minQtVersion(5, 2, 0) { minQtVersion(5, 2, 0) {
SUBDIRS += \ SUBDIRS += \
qmldesigner \
qmlprofiler \ qmlprofiler \
welcome welcome
} else { } else {
warning("QmlDesigner plugin has been disabled.")
warning("QmlProfiler plugin has been disabled.") warning("QmlProfiler plugin has been disabled.")
warning("Welcome plugin has been disabled.") warning("Welcome plugin has been disabled.")
warning("These plugins need at least Qt 5.2.") warning("These plugins need at least Qt 5.2.")