forked from qt-creator/qt-creator
TextEditor: move rename symbol action to text editor
Task-number: QTCREATORBUG-21578 Change-Id: I9a873dcd38bacb2287c45973b6be0091c3eb9480 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -844,7 +844,7 @@ void QmlJSEditorWidget::findUsages()
|
||||
m_findReferences->findUsages(textDocument()->filePath().toString(), textCursor().position());
|
||||
}
|
||||
|
||||
void QmlJSEditorWidget::renameUsages()
|
||||
void QmlJSEditorWidget::renameSymbolUnderCursor()
|
||||
{
|
||||
m_findReferences->renameUsages(textDocument()->filePath().toString(), textCursor().position());
|
||||
}
|
||||
@@ -1098,9 +1098,10 @@ QmlJSEditorFactory::QmlJSEditorFactory(Core::Id _id)
|
||||
setCompletionAssistProvider(new QmlJSCompletionAssistProvider);
|
||||
|
||||
setEditorActionHandlers(TextEditorActionHandler::Format
|
||||
| TextEditorActionHandler::UnCommentSelection
|
||||
| TextEditorActionHandler::UnCollapseAll
|
||||
| TextEditorActionHandler::FollowSymbolUnderCursor);
|
||||
| TextEditorActionHandler::UnCommentSelection
|
||||
| TextEditorActionHandler::UnCollapseAll
|
||||
| TextEditorActionHandler::FollowSymbolUnderCursor
|
||||
| TextEditorActionHandler::RenameSymbol);
|
||||
}
|
||||
|
||||
void QmlJSEditorFactory::decorateEditor(TextEditorWidget *editor)
|
||||
|
||||
Reference in New Issue
Block a user