MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / refreshContainer

Method refreshContainer

launcher/ui/widgets/PageContainer.cpp:145–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145void PageContainer::refreshContainer()
146{
147 m_proxyModel->invalidate();
148 if (!m_currentPage->shouldDisplay()) {
149 auto index = m_proxyModel->index(0, 0);
150 if (index.isValid()) {
151 m_pageList->setCurrentIndex(index);
152 } else {
153 // FIXME: unhandled corner case: what to do when there's no page to select?
154 }
155 }
156}
157
158void PageContainer::createUI()
159{

Calls 4

invalidateMethod · 0.80
shouldDisplayMethod · 0.45
indexMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected