MCPcopy Create free account
hub / github.com/KDE/kdevelop / ~ViewBarContainer

Method ~ViewBarContainer

kdevplatform/sublime/viewbarcontainer.cpp:61–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61ViewBarContainer::~ViewBarContainer()
62{
63 Q_D(ViewBarContainer);
64
65 // unparent any viewbars which may still exist
66 // other code is still tracking those
67 for (int i = d->layout->count(); i > 0; --i) {
68 auto widget = d->layout->itemAt(i-1)->widget();
69 if (widget) {
70 d->layout->removeWidget(widget);
71 widget->setParent(nullptr);
72 widget->hide();
73 }
74 }
75}
76
77void ViewBarContainer::addViewBar(QWidget* viewBar)
78{

Callers

nothing calls this directly

Calls 5

itemAtMethod · 0.80
removeWidgetMethod · 0.80
countMethod · 0.45
widgetMethod · 0.45
setParentMethod · 0.45

Tested by

no test coverage detected