CMake: Update qmljs codemodel

With this patch it is possible to specify QML_IMPORT_PATH in
CMake projects and QtCreator will scan those paths.
One only has to make sure that the variable which is set in the
CMakeLists.txt is also added to the CMakeCache.txt

Task-number: QTCREATORBUG-11328
Change-Id: I11c7694806664d3203d855983e7db4a89fac267d
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Wolfgang Bremer
2016-04-18 13:06:41 +02:00
parent c90a356be6
commit 2f301bc45b
5 changed files with 41 additions and 2 deletions

View File

@@ -124,6 +124,7 @@ private:
void handleActiveBuildConfigurationChanged();
void handleParsingStarted();
void parseCMakeOutput();
void updateQmlJSCodeModel();
void buildTree(Internal::CMakeProjectNode *rootNode, QList<ProjectExplorer::FileNode *> list);
void gatherFileNodes(ProjectExplorer::FolderNode *parent, QList<ProjectExplorer::FileNode *> &list) const;