MCPcopy Create free account
hub / github.com/KDE/kdevelop / activeTextDocumentView

Method activeTextDocumentView

kdevplatform/shell/documentcontroller.cpp:993–1004  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

991}
992
993KTextEditor::View* DocumentController::activeTextDocumentView() const
994{
995 UiController *uiController = Core::self()->uiControllerInternal();
996 Sublime::MainWindow* mw = uiController->activeSublimeWindow();
997 if( !mw || !mw->activeView() )
998 return nullptr;
999
1000 auto* view = qobject_cast<TextView*>(mw->activeView());
1001 if(!view)
1002 return nullptr;
1003 return view->textView();
1004}
1005
1006QString DocumentController::activeDocumentPath( const QString& target ) const
1007{

Callers 15

openDocumentInternalMethod · 0.80
shortcutsChangedMethod · 0.80
doShowDocumentationMethod · 0.80
tryActiveDocumentMethod · 0.80
slotDocumentActivatedMethod · 0.80
problemsForContextMethod · 0.80
activeViewMethod · 0.80
cursorDeclarationFunction · 0.80
cursorContextDeclarationFunction · 0.80

Calls 4

uiControllerInternalMethod · 0.80
activeSublimeWindowMethod · 0.80
textViewMethod · 0.80
activeViewMethod · 0.45

Tested by 2

changeDocumentMethod · 0.64