forked from qt-creator/qt-creator
QmlJS: Succeed on the QmlDumpTool::canBuild check if private header found
To make it work with 4.7.0 developer builds. Reviewed-by: owolff
This commit is contained in:
@@ -128,7 +128,9 @@ static inline QStringList validBinaryFilenames()
|
|||||||
|
|
||||||
bool QmlDumpTool::canBuild(QtVersion *qtVersion)
|
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)
|
static QtVersion *qtVersionForProject(ProjectExplorer::Project *project)
|
||||||
|
|||||||
Reference in New Issue
Block a user