Core: Rename ActionBuilder::setContainer to addToContainer

An action/command can be used in several places.

Change-Id: Ifa26f64f7d200d93ada13f272de0fa833f886997
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2023-12-13 09:02:02 +01:00
parent 5e2bc6f398
commit e17f0b6164
22 changed files with 131 additions and 131 deletions

View File

@@ -87,8 +87,8 @@ void ClangCodeModelPlugin::initialize()
ActionBuilder updateStaleIndexEntries(this, "ClangCodeModel.UpdateStaleIndexEntries");
updateStaleIndexEntries.setText(Tr::tr("Update Potentially Stale Clangd Index Entries"));
updateStaleIndexEntries.setOnTriggered(this, &ClangModelManagerSupport::updateStaleIndexEntries);
updateStaleIndexEntries.setContainer(CppEditor::Constants::M_TOOLS_CPP);
updateStaleIndexEntries.setContainer(CppEditor::Constants::M_CONTEXT);
updateStaleIndexEntries.addToContainer(CppEditor::Constants::M_TOOLS_CPP);
updateStaleIndexEntries.addToContainer(CppEditor::Constants::M_CONTEXT);
#ifdef WITH_TESTS
addTest<Tests::ActivationSequenceProcessorTest>();