forked from qt-creator/qt-creator
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
This commit is contained in:
@@ -50,10 +50,9 @@ static inline QStringList validBinaryFilenames()
|
||||
<< QLatin1String("qmldump.app/Contents/MacOS/qmldump");
|
||||
}
|
||||
|
||||
bool QmlDumpTool::canBuild(const QString &installHeadersDir)
|
||||
bool QmlDumpTool::canBuild(QtVersion *qtVersion)
|
||||
{
|
||||
QString qDeclHeader = installHeadersDir + QLatin1String("/QtDeclarative/private/qdeclarativemetatype_p.h");
|
||||
return QFile::exists(qDeclHeader);
|
||||
return checkMinimumQtVersion(qtVersion->qtVersionString(), 4, 7, 0);
|
||||
}
|
||||
|
||||
QString QmlDumpTool::toolForProject(ProjectExplorer::Project *project)
|
||||
|
||||
Reference in New Issue
Block a user