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

@@ -69,11 +69,8 @@ EmacsKeysPlugin::EmacsKeysPlugin() = default;
EmacsKeysPlugin::~EmacsKeysPlugin() = default;
bool EmacsKeysPlugin::initialize(const QStringList &arguments, QString *errorString)
void EmacsKeysPlugin::initialize()
{
Q_UNUSED(arguments)
Q_UNUSED(errorString)
// We have to use this hack here at the moment, because it's the only way to
// disable Qt Creator menu accelerators aka mnemonics. Many of them get into
// the way of typical emacs keys, such as: Alt+F (File), Alt+B (Build),
@@ -130,7 +127,6 @@ bool EmacsKeysPlugin::initialize(const QStringList &arguments, QString *errorStr
&EmacsKeysPlugin::scrollHalfDown, tr("Scroll Half Screen Down"));
registerAction(Constants::SCROLL_HALF_UP,
&EmacsKeysPlugin::scrollHalfUp, tr("Scroll Half Screen Up"));
return true;
}
void EmacsKeysPlugin::extensionsInitialized()