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