summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)