void SymbolsFindFilter::openEditor(const SearchResultItem &item) { if (!item.userData.canConvert<IndexItem::Ptr>()) return; IndexItem::Ptr info = item.userData.value<IndexItem::Ptr>(); EditorManager::openEditorAt(info->fileName(), info->line(), info->column()); }
void CppLocatorFilter::accept(Core::LocatorFilterEntry selection) const { IndexItem::Ptr info = qvariant_cast<IndexItem::Ptr>(selection.internalData); Core::EditorManager::openEditorAt(info->fileName(), info->line(), info->column()); }