MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / clear

Method clear

forms/multilistbox.cpp:262–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260void MultilistBox::unloadResources() {}
261
262void MultilistBox::clear()
263{
264 this->setDirty();
265
266 for (auto &c : Controls)
267 {
268 c->setParent(nullptr);
269 }
270 Controls.clear();
271 selectedSet.clear();
272 hoveredItem = nullptr;
273}
274
275void MultilistBox::addItem(sp<Control> Item)
276{

Callers 1

clearSelectionMethod · 0.45

Calls 2

setDirtyMethod · 0.80
setParentMethod · 0.80

Tested by

no test coverage detected