CppEditor: Fix renaming virtual functions

Before renaming, we first follow the symbol to see whether it originates
from a generated files. We must not try to list the overrides for virtual
member functions in that context.
Amends 06390f5b53.

Change-Id: Ic17e865a03b884d63875622f54448fef63c24b7e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2023-11-22 14:12:18 +01:00
parent 5841e95123
commit 462079f806

View File

@@ -625,7 +625,7 @@ void CppEditorWidget::renameUsages(const QString &replacement, QTextCursor curso
}; };
CppModelManager::followSymbol( CppModelManager::followSymbol(
CursorInEditor{cursor, textDocument()->filePath(), this, textDocument()}, CursorInEditor{cursor, textDocument()->filePath(), this, textDocument()},
continuation, true, false); continuation, false, false);
} }
void CppEditorWidget::renameUsages(const Utils::FilePath &filePath, const QString &replacement, void CppEditorWidget::renameUsages(const Utils::FilePath &filePath, const QString &replacement,