Added `Find Usages' of a Symbol.

This commit is contained in:
Roberto Raggi
2009-10-05 15:17:25 +02:00
parent d38f654d53
commit 73320a43d1
10 changed files with 64 additions and 10 deletions

View File

@@ -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();