From 129448d61dfe2a283d293272a04e9b2d7542c28a Mon Sep 17 00:00:00 2001 From: Marcus Tillmanns Date: Tue, 25 Oct 2022 08:57:49 +0200 Subject: QmlJS: Fix Follow under cursor When trying to jump to a symbol in a qml file the Qml Model may find the location in a generated .qml file in the build folder. QtCreator searches in all generated .qrc files to try and find the source file so it can jump to it instead. Previously not all auto-generated ".rcc" folders would be found as only the folders of targets (executables) were searched. Plugins or Static Libraries were not searched. With this fix, all projects nodes are searched for the ".rcc" folder and therefore also finds them for Dynamic / Static libraries and plugins. Fixes: QTCREATORBUG-27173 Change-Id: Ic51ac8fbc82c15785cbefd76787942a512ecf3db Reviewed-by: Reviewed-by: hjk --- src/plugins/projectexplorer/project.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plugins/projectexplorer/project.cpp') diff --git a/src/plugins/projectexplorer/project.cpp b/src/plugins/projectexplorer/project.cpp index de503fff87..afb7eca08c 100644 --- a/src/plugins/projectexplorer/project.cpp +++ b/src/plugins/projectexplorer/project.cpp @@ -109,6 +109,10 @@ const Project::NodeMatcher Project::GeneratedFiles = [](const Node *node) { return isListedFileNode(node) && node->isGenerated(); }; +const Project::NodeMatcher Project::HiddenRccFolders = [](const Node *node) { + return node->isFolderNodeType() && node->filePath().fileName() == ".rcc"; +}; + // -------------------------------------------------------------------- // ProjectDocument: // -------------------------------------------------------------------- -- cgit v1.2.1