From 7a2b25ccf86f02a58e4e22ad198726f9346bfebc Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Thu, 21 Sep 2023 13:44:14 +0200 Subject: [PATCH] CppEditor: Move "rename" action closer to "find references" ... in the menus. Change-Id: I5387b7024525226b70c1af484bad97228f9370c7 Reviewed-by: David Schulz --- src/plugins/cppeditor/cppeditorplugin.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/cppeditor/cppeditorplugin.cpp b/src/plugins/cppeditor/cppeditorplugin.cpp index 3de7c9c083a..5b603b5bd78 100644 --- a/src/plugins/cppeditor/cppeditorplugin.cpp +++ b/src/plugins/cppeditor/cppeditorplugin.cpp @@ -379,6 +379,10 @@ void CppEditorPlugin::initialize() contextMenu->addAction(cmd, Constants::G_CONTEXT_FIRST); cppToolsMenu->addAction(cmd); + cmd = ActionManager::command(TextEditor::Constants::RENAME_SYMBOL); + contextMenu->addAction(cmd, Constants::G_CONTEXT_FIRST); + cppToolsMenu->addAction(cmd); + QAction * const showPreprocessedAction = new QAction(Tr::tr("Show Preprocessed Source"), this); command = ActionManager::registerAction(showPreprocessedAction, Constants::SHOW_PREPROCESSED_FILE, context); @@ -452,7 +456,6 @@ void CppEditorPlugin::initialize() Command *sep = contextMenu->addSeparator(); sep->action()->setObjectName(QLatin1String(Constants::M_REFACTORING_MENU_INSERTION_POINT)); contextMenu->addSeparator(); - cppToolsMenu->addAction(ActionManager::command(TextEditor::Constants::RENAME_SYMBOL)); // Update context in global context cppToolsMenu->addSeparator(Core::Constants::G_DEFAULT_THREE);