summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordt <qtc-commiter@nokia.com>2008-12-18 16:19:50 +0100
committerdt <qtc-commiter@nokia.com>2008-12-18 16:19:50 +0100
commitf9a917eb2a0002cdba84964f481930992fdc518d (patch)
tree8bf291106214cde16915bcb6c2331a491d825618
parent3564c529d078584d7b5d0a30665d7ace7d012c71 (diff)
downloadqt-creator-f9a917eb2a0002cdba84964f481930992fdc518d.tar.gz
Fixes: Move qt version check to qtcreator.pro
RevBy: con
-rw-r--r--qtcreator.pro8
-rw-r--r--src/plugins/designer/designer.pro5
2 files changed, 8 insertions, 5 deletions
diff --git a/qtcreator.pro b/qtcreator.pro
index 13f0b26fa3..6c5d876731 100644
--- a/qtcreator.pro
+++ b/qtcreator.pro
@@ -1,3 +1,11 @@
+#version check qt
+TOO_OLD_LIST=$$find(QT_VERSION, ^4\.[0-4])
+count(TOO_OLD_LIST, 1) {
+ message("Cannot build the Qt Creator with a Qt version that old:" $$QT_VERSION)
+ error("Use at least Qt 4.5.")
+}
+
+
TEMPLATE = subdirs
CONFIG += ordered
diff --git a/src/plugins/designer/designer.pro b/src/plugins/designer/designer.pro
index a039bf2991..7006e65614 100644
--- a/src/plugins/designer/designer.pro
+++ b/src/plugins/designer/designer.pro
@@ -6,11 +6,6 @@ include(../../../shared/designerintegrationv2/designerintegration.pri)
include(cpp/cpp.pri)
include(designer_dependencies.pri)
-# -- check the Qt version
-TOO_OLD_LIST=$$find(QT_VERSION, ^4\.[0-4])
-count(TOO_OLD_LIST, 1) {
- error("Cannot build the designer plugin with a Qt version that old:" $$QT_VERSION)
-}
# -- figure out shared dir location
!exists($$[QT_INSTALL_HEADERS]/QtDesigner/private/qdesigner_integration_p.h) {
QT_SOURCE_TREE=$$fromfile($$(QTDIR)/.qmake.cache,QT_SOURCE_TREE)