diff options
author | Cristian Adam <cristian.adam@qt.io> | 2023-05-09 18:22:47 +0200 |
---|---|---|
committer | Cristian Adam <cristian.adam@qt.io> | 2023-05-15 15:13:23 +0000 |
commit | 9ff0cf7306eed74f36bd1826fe6ec5b26d5f25e9 (patch) | |
tree | 50579781b283146a7459cd16c2dde7759c540f14 /src/plugins/cmakeprojectmanager/cmakeproject.cpp | |
parent | ce7ee677d84850c087e0cef8f9d65470efac8f9e (diff) | |
download | qt-creator-9ff0cf7306eed74f36bd1826fe6ec5b26d5f25e9.tar.gz |
CMakePM: Add action to reload CMake Presets
The CMake presets will be reloaded. The preset kits will get the CMake
configuration cleared (no more CMakeCache.txt)
All the kits will be removed from the project, so that the Kit
configuration wizard will be displayed at the end.
If a normal Qt Kit was configured, the user will get the chance to
import the existing configuration (the initial configuration will be
lost though).
Change-Id: Ieda83098d7716913d7870b67ab522705da4ed93b
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmakeproject.cpp')
-rw-r--r-- | src/plugins/cmakeprojectmanager/cmakeproject.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakeproject.cpp b/src/plugins/cmakeprojectmanager/cmakeproject.cpp index 8bd96f239e..610fd86ec2 100644 --- a/src/plugins/cmakeprojectmanager/cmakeproject.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeproject.cpp @@ -67,7 +67,7 @@ Tasks CMakeProject::projectIssues(const Kit *k) const ProjectImporter *CMakeProject::projectImporter() const { if (!m_projectImporter) - m_projectImporter = new CMakeProjectImporter(projectFilePath(), m_presetsData); + m_projectImporter = new CMakeProjectImporter(projectFilePath(), this); return m_projectImporter; } @@ -306,4 +306,15 @@ void CMakeProject::configureAsExampleProject(ProjectExplorer::Kit *kit) setup(infoList); } +void CMakeProjectManager::CMakeProject::setOldPresetKits( + const QList<ProjectExplorer::Kit *> &presetKits) const +{ + m_oldPresetKits = presetKits; +} + +QList<Kit *> CMakeProject::oldPresetKits() const +{ + return m_oldPresetKits; +} + } // namespace CMakeProjectManager |