Differential D15694 Diff 42757 kdevplatform/language/duchain/navigation/abstractnavigationcontext.cpp
Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/language/duchain/navigation/abstractnavigationcontext.cpp
Show First 20 Lines • Show All 204 Lines • ▼ Show 20 Line(s) | 204 | case NavigationAction::None: | |||
---|---|---|---|---|---|
205 | qCDebug(LANGUAGE) << "Tried to execute an invalid action in navigation-widget" << endl; | 205 | qCDebug(LANGUAGE) << "Tried to execute an invalid action in navigation-widget" << endl; | ||
206 | break; | 206 | break; | ||
207 | case NavigationAction::NavigateDeclaration: | 207 | case NavigationAction::NavigateDeclaration: | ||
208 | { | 208 | { | ||
209 | auto ctx = dynamic_cast<AbstractDeclarationNavigationContext*>(d->m_previousContext); | 209 | auto ctx = dynamic_cast<AbstractDeclarationNavigationContext*>(d->m_previousContext); | ||
210 | if( ctx && ctx->declaration() == action.decl ) | 210 | if( ctx && ctx->declaration() == action.decl ) | ||
211 | return NavigationContextPointer(d->m_previousContext); | 211 | return NavigationContextPointer(d->m_previousContext); | ||
212 | return registerChild(action.decl); | 212 | return registerChild(action.decl); | ||
213 | } break; | 213 | } | ||
214 | case NavigationAction::NavigateUses: | 214 | case NavigationAction::NavigateUses: | ||
215 | { | 215 | { | ||
216 | IContextBrowser* browser = ICore::self()->pluginController()->extensionForPlugin<IContextBrowser>(); | 216 | IContextBrowser* browser = ICore::self()->pluginController()->extensionForPlugin<IContextBrowser>(); | ||
217 | if (browser) { | 217 | if (browser) { | ||
218 | browser->showUses(action.decl); | 218 | browser->showUses(action.decl); | ||
219 | return NavigationContextPointer(this); | 219 | return NavigationContextPointer(this); | ||
220 | } | 220 | } | ||
221 | Q_FALLTHROUGH(); | 221 | Q_FALLTHROUGH(); | ||
▲ Show 20 Lines • Show All 341 Lines • Show Last 20 Lines |