From 2bda8675e509c5547a0057e50d9024b49054cf78 Mon Sep 17 00:00:00 2001 From: con Date: Mon, 19 Jul 2010 14:46:53 +0200 Subject: 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. --- src/plugins/cpptools/cppfindreferences.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/plugins/cpptools/cppfindreferences.cpp') 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); + } } -- cgit v1.2.1