Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/language/duchain/navigation/usesnavigationcontext.cpp
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | |||||
45 | 45 | | |||
46 | QString UsesNavigationContext::html(bool shorten) | 46 | QString UsesNavigationContext::html(bool shorten) | ||
47 | { | 47 | { | ||
48 | Q_UNUSED(shorten); | 48 | Q_UNUSED(shorten); | ||
49 | clear(); | 49 | clear(); | ||
50 | modifyHtml() += QLatin1String("<html><body><p>"); | 50 | modifyHtml() += QLatin1String("<html><body><p>"); | ||
51 | 51 | | |||
52 | if (auto context = previousContext()) { | 52 | if (auto context = previousContext()) { | ||
53 | modifyHtml() += navigationHighlight(i18n("Uses of ")); | 53 | modifyHtml() += theme().navigationHighlight(i18n("Uses of ")); | ||
54 | makeLink(context->name(), context->name(), NavigationAction(context)); | 54 | makeLink(context->name(), context->name(), NavigationAction(context)); | ||
55 | } else { | 55 | } else { | ||
56 | KDevelop::DUChainReadLocker lock(DUChain::lock()); | 56 | KDevelop::DUChainReadLocker lock(DUChain::lock()); | ||
57 | if (Declaration* decl = m_declaration.data()) { | 57 | if (Declaration* decl = m_declaration.data()) { | ||
58 | makeLink(i18n("Uses of %1", decl->toString()), DeclarationPointer( | 58 | makeLink(i18n("Uses of %1", decl->toString()), DeclarationPointer( | ||
59 | decl), NavigationAction::NavigateDeclaration); | 59 | decl), NavigationAction::NavigateDeclaration); | ||
60 | } | 60 | } | ||
61 | } | 61 | } | ||
Show All 10 Lines |