diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2024-02-26 16:34:32 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2024-03-12 08:55:11 +0000 |
commit | 1de045f687213fca17f07a17f8db60cc107efe8f (patch) | |
tree | 5ee59da9fd4ef0da2252d1b8d0a7a8e4ec5b3199 /src/plugins/cppeditor/cppfindreferences.cpp | |
parent | db4aa772373cdb120e8cd4259bf1b7ed1d211577 (diff) |
CppEditor: Move some convenience functions to CppCodeModelSettings class
Change-Id: I0af8560c23374ce4f6c46f98d498d44f7cb50db3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cppfindreferences.cpp')
-rw-r--r-- | src/plugins/cppeditor/cppfindreferences.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/cppeditor/cppfindreferences.cpp b/src/plugins/cppeditor/cppfindreferences.cpp index 25b3e110d5..683eda587a 100644 --- a/src/plugins/cppeditor/cppfindreferences.cpp +++ b/src/plugins/cppeditor/cppfindreferences.cpp @@ -388,7 +388,7 @@ void CppFindReferences::findUsages(CPlusPlus::Symbol *symbol, search->setTextToReplace(replacement); if (callback) search->makeNonInteractive(callback); - if (codeModelSettings()->categorizeFindReferences()) + if (CppCodeModelSettings::instance().categorizeFindReferences()) search->setFilter(new CppSearchResultFilter); setupSearch(search); search->setSearchAgainSupported(true); @@ -397,7 +397,7 @@ void CppFindReferences::findUsages(CPlusPlus::Symbol *symbol, CppFindReferencesParameters parameters; parameters.symbolId = fullIdForSymbol(symbol); parameters.symbolFilePath = symbol->filePath(); - parameters.categorize = codeModelSettings()->categorizeFindReferences(); + parameters.categorize = CppCodeModelSettings::instance().categorizeFindReferences(); parameters.preferLowerCaseFileNames = preferLowerCaseFileNames( ProjectManager::projectForFile(symbol->filePath())); @@ -408,7 +408,8 @@ void CppFindReferences::findUsages(CPlusPlus::Symbol *symbol, } search->setUserData(QVariant::fromValue(parameters)); - findAll_helper(search, symbol, context, codeModelSettings()->categorizeFindReferences()); + findAll_helper(search, symbol, context, + CppCodeModelSettings::instance().categorizeFindReferences()); } void CppFindReferences::renameUsages(CPlusPlus::Symbol *symbol, |