diff options
author | Marcus Tillmanns <marcus.tillmanns@qt.io> | 2022-10-25 08:57:49 +0200 |
---|---|---|
committer | Marcus Tillmanns <marcus.tillmanns@qt.io> | 2022-11-08 09:54:10 +0000 |
commit | 129448d61dfe2a283d293272a04e9b2d7542c28a (patch) | |
tree | 8ba41d47e68435f7f81ed956c432d93a187e1259 /src/plugins/projectexplorer/project.cpp | |
parent | fe376af66bca8d826336a14701b2e427d4bc5a3e (diff) | |
download | qt-creator-129448d61dfe2a283d293272a04e9b2d7542c28a.tar.gz |
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: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/project.cpp')
-rw-r--r-- | src/plugins/projectexplorer/project.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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: // -------------------------------------------------------------------- |