| 422 | } |
| 423 | |
| 424 | void KDevelop::UiController::removeToolView(IToolViewFactory *factory) |
| 425 | { |
| 426 | Q_D(UiController); |
| 427 | |
| 428 | if (!factory) |
| 429 | return; |
| 430 | |
| 431 | Sublime::ToolDocument *doc = d->factoryDocuments.value(factory); |
| 432 | |
| 433 | for (Sublime::View* view : doc->views()) { |
| 434 | const auto areas = allAreas(); |
| 435 | for (Sublime::Area *area : areas) { |
| 436 | area->removeToolView(view); |
| 437 | } |
| 438 | } |
| 439 | |
| 440 | emit toolViewRemoved(doc); |
| 441 | |
| 442 | qCDebug(SHELL) << "UiController removed tool view" << doc->documentSpecifier(); |
| 443 | |
| 444 | d->factoryDocuments.remove(factory); |
| 445 | delete doc; |
| 446 | } |
| 447 | |
| 448 | Sublime::Area *UiController::activeArea() |
| 449 | { |
no test coverage detected