MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / PopulateWidgetsFromCache

Method PopulateWidgetsFromCache

lib/macro/macro-segment-list.cpp:189–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189bool MacroSegmentList::PopulateWidgetsFromCache(const Macro *macro)
190{
191 if (!_useCache) {
192 return false;
193 }
194
195 auto it = _widgetCache.find(macro);
196 if (it == _widgetCache.end()) {
197 return false;
198 }
199
200 for (auto widget : it->second) {
201 _contentLayout->addWidget(widget);
202 widget->show();
203 }
204
205 adjustSize();
206 updateGeometry();
207 return true;
208}
209
210void MacroSegmentList::ClearWidgetsFromCacheFor(const Macro *macro)
211{

Callers 3

PopulateMacroActionsMethod · 0.80

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected