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

Method selectAll

forms/multilistbox.cpp:484–495  ·  view source on GitHub ↗

* Select all items. */

Source from the content-addressed store, hash-verified

482 * Select all items.
483 */
484void MultilistBox::selectAll()
485{
486 for (auto &c : Controls)
487 {
488 if (c->isVisible() && funcHandleSelection(nullptr, c, true))
489 {
490 selectedSet.insert(c);
491 }
492 }
493
494 setDirty();
495}
496
497/**
498 * Deselect all selected items.

Callers 1

initMethod · 0.80

Calls 2

insertMethod · 0.80
isVisibleMethod · 0.45

Tested by

no test coverage detected