diff options
author | con <qtc-committer@nokia.com> | 2010-07-19 14:46:53 +0200 |
---|---|---|
committer | con <qtc-committer@nokia.com> | 2010-07-23 16:34:22 +0200 |
commit | 2bda8675e509c5547a0057e50d9024b49054cf78 (patch) | |
tree | 00bbd4f434f501e59d9d056db535ffe859a65849 /src/plugins/cpptools/cppfindreferences.cpp | |
parent | 80d85e28874d1d37e5a16dc0825a6d3c0167fa61 (diff) | |
download | qt-creator-2bda8675e509c5547a0057e50d9024b49054cf78.tar.gz |
C++ symbols find filter for advanced find.
Required refactoring of the search result window to show real trees of
search results.
The backend is the backend from the Locator filter, which is a bit
outdated now.
Diffstat (limited to 'src/plugins/cpptools/cppfindreferences.cpp')
-rw-r--r-- | src/plugins/cpptools/cppfindreferences.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cppfindreferences.cpp b/src/plugins/cpptools/cppfindreferences.cpp index c3c36dcb2e..451aef4261 100644 --- a/src/plugins/cpptools/cppfindreferences.cpp +++ b/src/plugins/cpptools/cppfindreferences.cpp @@ -313,7 +313,11 @@ void CppFindReferences::searchFinished() void CppFindReferences::openEditor(const Find::SearchResultItem &item) { - TextEditor::BaseTextEditor::openEditorAt(item.fileName, item.lineNumber, item.searchTermStart); + if (item.path.size() > 0) { + TextEditor::BaseTextEditor::openEditorAt(item.path.first(), item.lineNumber, item.textMarkPos); + } else { + Core::EditorManager::instance()->openEditor(item.text); + } } |