Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/language/duchain/navigation/usesnavigationcontext.cpp
Show All 39 Lines | |||||
40 | 40 | | |||
41 | QString UsesNavigationContext::name() const | 41 | QString UsesNavigationContext::name() const | ||
42 | { | 42 | { | ||
43 | return QStringLiteral("Uses"); | 43 | return QStringLiteral("Uses"); | ||
44 | } | 44 | } | ||
45 | 45 | | |||
46 | QString UsesNavigationContext::html(bool shorten) | 46 | QString UsesNavigationContext::html(bool shorten) | ||
47 | { | 47 | { | ||
48 | Q_UNUSED(shorten); | ||||
48 | clear(); | 49 | clear(); | ||
49 | modifyHtml() += QLatin1String("<html><body><p>"); | 50 | modifyHtml() += QLatin1String("<html><body><p>"); | ||
50 | 51 | | |||
51 | if (auto context = previousContext()) { | 52 | if (auto context = previousContext()) { | ||
52 | modifyHtml() += navigationHighlight(i18n("Uses of ")); | 53 | modifyHtml() += navigationHighlight(i18n("Uses of ")); | ||
53 | makeLink(context->name(), context->name(), NavigationAction(context)); | 54 | makeLink(context->name(), context->name(), NavigationAction(context)); | ||
54 | } else { | 55 | } else { | ||
55 | KDevelop::DUChainReadLocker lock(DUChain::lock()); | 56 | KDevelop::DUChainReadLocker lock(DUChain::lock()); | ||
Show All 15 Lines |