Commit 2a750aa3 authored by Christian Kamm's avatar Christian Kamm
Browse files

QmlJS: Succeed on the QmlDumpTool::canBuild check if private header found

To make it work with 4.7.0 developer builds.

Reviewed-by: owolff
parent 00a8d9c3
......@@ -128,7 +128,9 @@ static inline QStringList validBinaryFilenames()
bool QmlDumpTool::canBuild(QtVersion *qtVersion)
{
return checkMinimumQtVersion(qtVersion->qtVersionString(), 4, 7, 0);
const QString installHeaders = qtVersion->versionInfo().value("QT_INSTALL_HEADERS");
const QString header = installHeaders + QLatin1String("/QtDeclarative/private/qdeclarativemetatype_p.h");
return checkMinimumQtVersion(qtVersion->qtVersionString(), 4, 7, 1) || QFile::exists(header);
}
static QtVersion *qtVersionForProject(ProjectExplorer::Project *project)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment