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

Method currentChanged

launcher/ui/widgets/PageContainer.cpp:245–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245void PageContainer::currentChanged(const QModelIndex& current)
246{
247 int selected_index = current.isValid() ? m_proxyModel->mapToSource(current).row() : -1;
248
249 auto* selected = m_model->pages().at(selected_index);
250 auto* previous = m_currentPage;
251
252 emit selectedPageChanged(previous, selected);
253
254 showPage(selected_index);
255}
256
257bool PageContainer::prepareToClose()
258{

Callers

nothing calls this directly

Calls 3

mapToSourceMethod · 0.80
isValidMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected