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

Method addNewToolView

kdevplatform/shell/uicontroller.cpp:540–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

538}
539
540void UiController::addNewToolView(MainWindow *mw, QListWidgetItem* item)
541{
542 Q_D(UiController);
543
544 auto *current = static_cast<ViewSelectorItem*>(item);
545 Sublime::ToolDocument *doc = d->factoryDocuments[current->factory];
546 Sublime::View *view = doc->createView();
547 mw->area()->addToolView(view,
548 Sublime::dockAreaToPosition(current->factory->defaultPosition()));
549 current->factory->viewCreated(view);
550}
551
552void UiController::showSettingsDialog()
553{

Callers

nothing calls this directly

Calls 6

dockAreaToPositionFunction · 0.85
createViewMethod · 0.45
addToolViewMethod · 0.45
areaMethod · 0.45
defaultPositionMethod · 0.45
viewCreatedMethod · 0.45

Tested by

no test coverage detected