MCPcopy Create free account
hub / github.com/LibrePCB/LibrePCB / init

Method init

libs/librepcb/editor/utils/searchcontext.cpp:51–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 ******************************************************************************/
50
51void SearchContext::init() noexcept {
52 mTerm.clear();
53 mTermRe = std::nullopt;
54 mForward = true;
55 mIndex = 0;
56 mCandidates.clear();
57 mCandidatesFiltered.clear();
58 mModel = std::make_shared<slint::VectorModel<ui::SimpleListItemData>>();
59}
60
61void SearchContext::deinit() noexcept {
62 mModel.reset();

Callers 3

activateMethod · 0.45
activateMethod · 0.45
OutputJobsDialogMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected