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

Method activate

kdevplatform/shell/partdocument.cpp:176–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176void PartDocument::activate(Sublime::View *activeView, KParts::MainWindow *mainWindow)
177{
178 Q_UNUSED(mainWindow);
179
180 auto* const widget = activeView->widget();
181 Q_ASSERT(widget);
182 auto* const part = partForView(widget);
183 if (Core::self()->partController()->activePart() != part)
184 Core::self()->partController()->setActivePart(part);
185 notifyActivated();
186}
187
188KTextEditor::Cursor KDevelop::PartDocument::cursorPosition() const
189{

Callers 1

changeActiveViewMethod · 0.45

Calls 2

partControllerMethod · 0.80
widgetMethod · 0.45

Tested by

no test coverage detected