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

Method showArea

kdevplatform/sublime/controller.cpp:118–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void Controller::showArea(Area *area, MainWindow *mainWindow)
119{
120 Q_D(Controller);
121
122 Area *areaToShow = nullptr;
123 const auto windowIt = d->shownAreas.find(area);
124 //if the area is already shown in another mainwindow then we need to clone it
125 if (windowIt != d->shownAreas.end() && (mainWindow != *windowIt))
126 areaToShow = new Area(*area);
127 else
128 areaToShow = area;
129 d->shownAreas[areaToShow] = mainWindow;
130
131 showAreaInternal(areaToShow, mainWindow);
132}
133
134void Controller::showAreaInternal(Area* area, MainWindow *mainWindow)
135{

Callers 15

toggleAreaMethod · 0.80
initMethod · 0.80
areaCloningMethod · 0.80
sharedToolViewRemovalMethod · 0.80
toolDocumentRemovalMethod · 0.80

Calls 3

findMethod · 0.45
endMethod · 0.45
indexOfMethod · 0.45

Tested by 15

initMethod · 0.64
areaCloningMethod · 0.64
sharedToolViewRemovalMethod · 0.64
toolDocumentRemovalMethod · 0.64
viewActivationMethod · 0.64