forked from qt-creator/qt-creator
CppEditor: add startGlobalRenaming
Existing built-in functionality is moved there. Clang part is to be implemented later Change-Id: I7595898495213c087243cd534b4ba1617b4c27e9 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -546,8 +546,10 @@ void CppEditorWidget::renameSymbolUnderCursor()
|
||||
setExtraSelections(TextEditor::TextEditorWidget::CodeSemanticsSelection, selections);
|
||||
d->m_localRenaming.updateSelectionsForVariableUnderCursor(selections);
|
||||
}
|
||||
if (!d->m_localRenaming.start()) // Rename local symbol
|
||||
renameUsages(); // Rename non-local symbol or macro
|
||||
if (!d->m_localRenaming.start()) {
|
||||
refactoringEngine()->startGlobalRenaming(
|
||||
CppTools::CursorInEditor{textCursor(), textDocument()->filePath(), this});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user