Core: Rename ActionBuilder::setOn* to addOn*

There could be multiple connections.

Change-Id: I7dbca9d24599f776b7d1f1bfa11826e3eeb5640a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2023-12-13 12:29:46 +01:00
parent 3b7d29d2a1
commit b442ca3873
28 changed files with 158 additions and 158 deletions

View File

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