diff options
| author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-10-05 15:17:25 +0200 |
|---|---|---|
| committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-10-05 15:17:48 +0200 |
| commit | 73320a43d1891a28d193fedd5768a820896af92a (patch) | |
| tree | 8f751250d58e6f3efdf64e97b75c17f2ef5037cb /src/plugins/cpptools/cppfindreferences.cpp | |
| parent | d38f654d53cfef71e35f658da66eb2c83b13a902 (diff) | |
| download | qt-creator-73320a43d1891a28d193fedd5768a820896af92a.tar.gz | |
Added `Find Usages' of a Symbol.
Diffstat (limited to 'src/plugins/cpptools/cppfindreferences.cpp')
| -rw-r--r-- | src/plugins/cpptools/cppfindreferences.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cppfindreferences.cpp b/src/plugins/cpptools/cppfindreferences.cpp index 78eaea92d6..c0b8d92d9d 100644 --- a/src/plugins/cpptools/cppfindreferences.cpp +++ b/src/plugins/cpptools/cppfindreferences.cpp @@ -532,10 +532,21 @@ static void find_helper(QFutureInterface<Utils::FileSearchResult> &future, future.setProgressValue(files.size()); } -void CppFindReferences::findAll(Symbol *symbol) +void CppFindReferences::findUsages(Symbol *symbol) +{ + _resultWindow->clearContents(); + findAll_helper(symbol); +} + +void CppFindReferences::renameUsages(Symbol *symbol) { _resultWindow->clearContents(); _resultWindow->setShowReplaceUI(true); + findAll_helper(symbol); +} + +void CppFindReferences::findAll_helper(Symbol *symbol) +{ _resultWindow->popup(true); const Snapshot snapshot = _modelManager->snapshot(); |
