Commit e7e3dbec authored by Fawzi Mohamed's avatar Fawzi Mohamed

qmljs: fix compilation with Qt4 (attempt 2)

Change-Id: I4a324dc0c6558dc8494d576b75b81a55455f218a
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@digia.com>
parent e3b3e21e
......@@ -120,7 +120,9 @@ ModelManagerInterface::ProjectInfo QmlJSTools::defaultProjectInfoForProject(
projectInfo.qtImportsPath = qtVersion->qmakeProperty("QT_INSTALL_IMPORTS");
projectInfo.qtVersionString = qtVersion->qtVersionString();
} else {
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
projectInfo.qtQmlPath = QLibraryInfo::location(QLibraryInfo::Qml2ImportsPath);
#endif
projectInfo.qtImportsPath = QLibraryInfo::location(QLibraryInfo::ImportsPath);
projectInfo.qtVersionString = QLatin1String(qVersion());
}
......
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