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

Method removeToolView

kdevplatform/shell/uicontroller.cpp:424–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422}
423
424void 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
448Sublime::Area *UiController::activeArea()
449{

Callers 1

createToolViewMethod · 0.45

Calls 4

valueMethod · 0.45
viewsMethod · 0.45
documentSpecifierMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected