forked from qt-creator/qt-creator
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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user