| 449 | } |
| 450 | |
| 451 | void ContextUsesWidget::linkWasActivated(const QString& link) |
| 452 | { |
| 453 | if (link == QLatin1String("navigateToFunction")) { |
| 454 | DUChainReadLocker lock(DUChain::lock()); |
| 455 | DUContext* context = m_context.context(); |
| 456 | if (context) { |
| 457 | CursorInRevision contextStart = context->range().start; |
| 458 | KTextEditor::Cursor cursor(contextStart.line, contextStart.column); |
| 459 | QUrl url = context->url().toUrl(); |
| 460 | lock.unlock(); |
| 461 | ForegroundLock fgLock; |
| 462 | ICore::self()->documentController()->openDocument(url, cursor); |
| 463 | } |
| 464 | } |
| 465 | } |
| 466 | |
| 467 | DeclarationWidget::DeclarationWidget(const CodeRepresentation& code, const IndexedDeclaration& decl) |
| 468 | { |
nothing calls this directly
no test coverage detected