| 126 | } |
| 127 | |
| 128 | void 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 | |
| 144 | bool Document::askForCloseFeedback() |
| 145 | { |
nothing calls this directly
no test coverage detected