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

Method addToolViewToArea

kdevplatform/shell/uicontroller.cpp:775–789  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

773}
774
775Sublime::View* UiController::addToolViewToArea(IToolViewFactory* factory,
776 Sublime::ToolDocument* doc,
777 Sublime::Area* area, Sublime::Position p)
778{
779 Sublime::View* view = doc->createView();
780 area->addToolView(
781 view,
782 p == Sublime::AllPositions ? Sublime::dockAreaToPosition(factory->defaultPosition()) : p);
783
784 connect(view, &Sublime::View::raise,
785 this, static_cast<void (UiController::*)(Sublime::View*)>(&UiController::raiseToolView));
786
787 factory->viewCreated(view);
788 return view;
789}
790
791void UiController::registerStatus(QObject* status)
792{

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected