qmljs: fix compilation for Qt4

Change-Id: Idb3ad6962e74dd7a34f108c6e3c3810d843a3f3a
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
This commit is contained in:
Fawzi Mohamed
2014-05-07 08:41:39 +02:00
parent ec8294841c
commit e3b3e21eda

View File

@@ -1361,7 +1361,9 @@ ModelManagerInterface::ProjectInfo ModelManagerInterface::defaultProjectInfo() c
{
ProjectInfo res;
res.qtImportsPath = QLibraryInfo::location(QLibraryInfo::ImportsPath);
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
res.qtQmlPath = QLibraryInfo::location(QLibraryInfo::Qml2ImportsPath);
#endif
return res;
}