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

Method selectRecommended

launcher/ui/widgets/VersionSelectWidget.cpp:203–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203void VersionSelectWidget::selectRecommended()
204{
205 auto idx = m_proxyModel->getRecommended();
206 if (idx.isValid()) {
207 preselectedAlready = true;
208 listView->selectionModel()->setCurrentIndex(idx, QItemSelectionModel::SelectCurrent | QItemSelectionModel::Rows);
209 listView->scrollTo(idx, QAbstractItemView::PositionAtCenter);
210 }
211}
212
213bool VersionSelectWidget::hasVersions() const
214{

Callers

nothing calls this directly

Calls 3

scrollToMethod · 0.80
getRecommendedMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected