forked from qt-creator/qt-creator
CMakeProjectManager: Pass context object to lambda connections
Remove some unneeded lambda () brackets. Remove some unneeded lambda return type specifiers. Change-Id: I9695367d66a151f2611554b9fe5897c1bac7ef5c Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -56,7 +56,7 @@ CMakeManager::CMakeManager()
|
||||
globalContext);
|
||||
command->setAttribute(Core::Command::CA_Hide);
|
||||
mbuild->addAction(command, ProjectExplorer::Constants::G_BUILD_BUILD);
|
||||
connect(m_runCMakeAction, &QAction::triggered, [this]() {
|
||||
connect(m_runCMakeAction, &QAction::triggered, this, [this] {
|
||||
runCMake(SessionManager::startupBuildSystem());
|
||||
});
|
||||
|
||||
@@ -65,7 +65,7 @@ CMakeManager::CMakeManager()
|
||||
globalContext);
|
||||
command->setAttribute(Core::Command::CA_Hide);
|
||||
mbuild->addAction(command, ProjectExplorer::Constants::G_BUILD_BUILD);
|
||||
connect(m_clearCMakeCacheAction, &QAction::triggered, [this]() {
|
||||
connect(m_clearCMakeCacheAction, &QAction::triggered, this, [this] {
|
||||
clearCMakeCache(SessionManager::startupBuildSystem());
|
||||
});
|
||||
|
||||
@@ -75,7 +75,7 @@ CMakeManager::CMakeManager()
|
||||
command->setAttribute(Core::Command::CA_Hide);
|
||||
mproject->addAction(command, ProjectExplorer::Constants::G_PROJECT_BUILD);
|
||||
msubproject->addAction(command, ProjectExplorer::Constants::G_PROJECT_BUILD);
|
||||
connect(m_runCMakeActionContextMenu, &QAction::triggered, [this]() {
|
||||
connect(m_runCMakeActionContextMenu, &QAction::triggered, this, [this] {
|
||||
runCMake(ProjectTree::currentBuildSystem());
|
||||
});
|
||||
|
||||
@@ -93,7 +93,7 @@ CMakeManager::CMakeManager()
|
||||
globalContext);
|
||||
command->setAttribute(Core::Command::CA_Hide);
|
||||
mbuild->addAction(command, ProjectExplorer::Constants::G_BUILD_BUILD);
|
||||
connect(m_rescanProjectAction, &QAction::triggered, [this]() {
|
||||
connect(m_rescanProjectAction, &QAction::triggered, this, [this] {
|
||||
rescanProject(ProjectTree::currentBuildSystem());
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user