forked from qt-creator/qt-creator
qmljs: phase out qtImportPaths
builtins were always using qtimportPath, which is now being removed, so prefer qtQmlPath. Change-Id: I99d9214c2188507859f27b729c027aaf77eb579e Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@theqtcompany.com>
This commit is contained in:
committed by
Fawzi Mohamed
parent
ebea99d399
commit
addb1c171a
@@ -1324,6 +1324,8 @@ LibraryInfo ModelManagerInterface::builtins(const Document::Ptr &doc) const
|
||||
ProjectInfo info = projectInfoForPath(doc->path());
|
||||
if (!info.isValid())
|
||||
return LibraryInfo();
|
||||
if (!info.qtQmlPath.isEmpty())
|
||||
return m_validSnapshot.libraryInfo(info.qtQmlPath);
|
||||
return m_validSnapshot.libraryInfo(info.qtImportsPath);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user