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

@@ -75,7 +75,7 @@ void ClangFormatPlugin::initialize()
ActionBuilder openConfig(this, Constants::OPEN_CURRENT_CONFIG_ID);
openConfig.setText(Tr::tr("Open Used .clang-format Configuration File"));
openConfig.setContainer(CppEditor::Constants::M_CONTEXT);
openConfig.addToContainer(CppEditor::Constants::M_CONTEXT);
openConfig.setOnTriggered([action=openConfig.contextAction()] {
const FilePath fileName = FilePath::fromVariant(action->data());
if (!fileName.isEmpty())