forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user