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

Method closeViews

kdevplatform/sublime/document.cpp:128–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128void Document::closeViews()
129{
130 Q_D(const Document);
131
132 for (auto* const area : d->controller->allAreas()) {
133 const QList<Sublime::View*> areaViews = area->views();
134 for (Sublime::View* view : areaViews) {
135 if (views().contains(view)) {
136 area->removeView(view);
137 delete view;
138 }
139 }
140 }
141 Q_ASSERT(views().isEmpty());
142}
143
144bool Document::askForCloseFeedback()
145{

Callers

nothing calls this directly

Calls 5

allAreasMethod · 0.80
viewsMethod · 0.45
containsMethod · 0.45
removeViewMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected