CMakePM: Display presets as part of the project outline

Fixes: QTCREATORBUG-28966
Change-Id: Iae0f77956bf6f4682ea8a25e08d05de3331c7420
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Cristian Adam
2023-05-09 13:49:50 +02:00
parent aca8e5906b
commit dc18d4b9ee
6 changed files with 58 additions and 0 deletions

View File

@@ -30,6 +30,15 @@ CMakeInputsNode::CMakeInputsNode(const FilePath &cmakeLists) :
setListInProject(false);
}
CMakePresetsNode::CMakePresetsNode(const FilePath &projectPath) :
ProjectExplorer::ProjectNode(projectPath)
{
setPriority(Node::DefaultPriority - 9);
setDisplayName(Tr::tr("CMake Presets"));
setIcon(DirectoryIcon(ProjectExplorer::Constants::FILEOVERLAY_PRODUCT));
setListInProject(false);
}
CMakeListsNode::CMakeListsNode(const FilePath &cmakeListPath) :
ProjectExplorer::ProjectNode(cmakeListPath)
{