From 88a36fe34c49ebcaddb701ae890014276ac4bb8f Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Wed, 29 Sep 2010 16:40:13 +0200 Subject: DebuggingHelpers: Check for Qt version instead checking private files The location private includes might still change with 4.7.1 . Better check the qt version string. Reviewed-by: Lasse Holmstedt --- src/plugins/qt4projectmanager/qmlobservertool.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/qt4projectmanager/qmlobservertool.cpp') diff --git a/src/plugins/qt4projectmanager/qmlobservertool.cpp b/src/plugins/qt4projectmanager/qmlobservertool.cpp index 3a64da2ed7..7b556f2a31 100644 --- a/src/plugins/qt4projectmanager/qmlobservertool.cpp +++ b/src/plugins/qt4projectmanager/qmlobservertool.cpp @@ -32,6 +32,7 @@ #include "qt4project.h" #include "qt4projectmanagerconstants.h" #include +#include #include #include @@ -50,10 +51,9 @@ static inline QStringList validBinaryFilenames() << QLatin1String("QMLObserver.app/Contents/MacOS/QMLObserver"); } -bool QmlObserverTool::canBuild(const QString &installHeadersDir) +bool QmlObserverTool::canBuild(QtVersion *qtVersion) { - QString qDeclHeader = installHeadersDir + QLatin1String("/QtDeclarative/private/qdeclarativemetatype_p.h"); - return QFile::exists(qDeclHeader); + return checkMinimumQtVersion(qtVersion->qtVersionString(), 4, 7, 1); } QString QmlObserverTool::toolForProject(ProjectExplorer::Project *project) -- cgit v1.2.1