Use simpler Plugin::initialize() when feasible

Change-Id: I567965d266f20526bda9f823e31a04b354d53fb1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2023-01-20 12:28:36 +01:00
parent 013ad1345e
commit 118b84ffd6
132 changed files with 138 additions and 399 deletions

View File

@@ -38,11 +38,8 @@ MacrosPlugin::~MacrosPlugin()
delete d;
}
bool MacrosPlugin::initialize(const QStringList &arguments, QString *errorMessage)
void MacrosPlugin::initialize()
{
Q_UNUSED(arguments)
Q_UNUSED(errorMessage)
d = new MacrosPluginPrivate;
Core::Context textContext(TextEditor::Constants::C_TEXTEDITOR);
@@ -79,10 +76,7 @@ bool MacrosPlugin::initialize(const QStringList &arguments, QString *errorMessag
command = Core::ActionManager::registerAction(saveLastMacro, Constants::SAVE_LAST_MACRO, textContext);
mmacrotools->addAction(command);
connect(saveLastMacro, &QAction::triggered, &d->macroManager, &MacroManager::saveLastMacro);
return true;
}
} // Internal
} // Macros