Changeset View
Changeset View
Standalone View
Standalone View
language/duchain/navigation/abstractnavigationcontext.cpp
Show All 14 Lines | 1 | /* | |||
---|---|---|---|---|---|
15 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 15 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
16 | Boston, MA 02110-1301, USA. | 16 | Boston, MA 02110-1301, USA. | ||
17 | */ | 17 | */ | ||
18 | 18 | | |||
19 | #include "abstractnavigationcontext.h" | 19 | #include "abstractnavigationcontext.h" | ||
20 | 20 | | |||
21 | #include <KLocalizedString> | 21 | #include <KLocalizedString> | ||
22 | 22 | | |||
23 | #include <qtcompat_p.h> | ||||
24 | | ||||
23 | #include "abstractdeclarationnavigationcontext.h" | 25 | #include "abstractdeclarationnavigationcontext.h" | ||
24 | #include "abstractnavigationwidget.h" | 26 | #include "abstractnavigationwidget.h" | ||
25 | #include "usesnavigationcontext.h" | 27 | #include "usesnavigationcontext.h" | ||
26 | #include "../../../interfaces/icore.h" | 28 | #include "../../../interfaces/icore.h" | ||
27 | #include "../../../interfaces/idocumentcontroller.h" | 29 | #include "../../../interfaces/idocumentcontroller.h" | ||
28 | #include "../functiondeclaration.h" | 30 | #include "../functiondeclaration.h" | ||
29 | #include "../namespacealiasdeclaration.h" | 31 | #include "../namespacealiasdeclaration.h" | ||
30 | #include "../types/functiontype.h" | 32 | #include "../types/functiontype.h" | ||
▲ Show 20 Lines • Show All 177 Lines • ▼ Show 20 Line(s) | 198 | switch( action.type ) { | |||
208 | } break; | 210 | } break; | ||
209 | case NavigationAction::NavigateUses: | 211 | case NavigationAction::NavigateUses: | ||
210 | { | 212 | { | ||
211 | IContextBrowser* browser = ICore::self()->pluginController()->extensionForPlugin<IContextBrowser>(); | 213 | IContextBrowser* browser = ICore::self()->pluginController()->extensionForPlugin<IContextBrowser>(); | ||
212 | if (browser) { | 214 | if (browser) { | ||
213 | browser->showUses(action.decl); | 215 | browser->showUses(action.decl); | ||
214 | return NavigationContextPointer(this); | 216 | return NavigationContextPointer(this); | ||
215 | } | 217 | } | ||
216 | // fall-through | 218 | Q_FALLTHROUGH(); | ||
217 | } | 219 | } | ||
218 | case NavigationAction::ShowUses: { | 220 | case NavigationAction::ShowUses: { | ||
219 | return registerChild(new UsesNavigationContext(action.decl.data(), this)); | 221 | return registerChild(new UsesNavigationContext(action.decl.data(), this)); | ||
220 | } | 222 | } | ||
221 | case NavigationAction::JumpToSource: | 223 | case NavigationAction::JumpToSource: | ||
222 | { | 224 | { | ||
223 | QUrl doc = action.document; | 225 | QUrl doc = action.document; | ||
224 | KTextEditor::Cursor cursor = action.cursor; | 226 | KTextEditor::Cursor cursor = action.cursor; | ||
▲ Show 20 Lines • Show All 331 Lines • Show Last 20 Lines |