forked from qt-creator/qt-creator
CppEditor: Move "rename" action closer to "find references"
... in the menus. Change-Id: I5387b7024525226b70c1af484bad97228f9370c7 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -379,6 +379,10 @@ void CppEditorPlugin::initialize()
|
|||||||
contextMenu->addAction(cmd, Constants::G_CONTEXT_FIRST);
|
contextMenu->addAction(cmd, Constants::G_CONTEXT_FIRST);
|
||||||
cppToolsMenu->addAction(cmd);
|
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);
|
QAction * const showPreprocessedAction = new QAction(Tr::tr("Show Preprocessed Source"), this);
|
||||||
command = ActionManager::registerAction(showPreprocessedAction,
|
command = ActionManager::registerAction(showPreprocessedAction,
|
||||||
Constants::SHOW_PREPROCESSED_FILE, context);
|
Constants::SHOW_PREPROCESSED_FILE, context);
|
||||||
@@ -452,7 +456,6 @@ void CppEditorPlugin::initialize()
|
|||||||
Command *sep = contextMenu->addSeparator();
|
Command *sep = contextMenu->addSeparator();
|
||||||
sep->action()->setObjectName(QLatin1String(Constants::M_REFACTORING_MENU_INSERTION_POINT));
|
sep->action()->setObjectName(QLatin1String(Constants::M_REFACTORING_MENU_INSERTION_POINT));
|
||||||
contextMenu->addSeparator();
|
contextMenu->addSeparator();
|
||||||
cppToolsMenu->addAction(ActionManager::command(TextEditor::Constants::RENAME_SYMBOL));
|
|
||||||
|
|
||||||
// Update context in global context
|
// Update context in global context
|
||||||
cppToolsMenu->addSeparator(Core::Constants::G_DEFAULT_THREE);
|
cppToolsMenu->addSeparator(Core::Constants::G_DEFAULT_THREE);
|
||||||
|
|||||||
Reference in New Issue
Block a user