MCPcopy Create free account
hub / github.com/MultiMC/Launcher / selectRecommended

Method selectRecommended

launcher/ui/widgets/VersionSelectWidget.cpp:169–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169void VersionSelectWidget::selectRecommended()
170{
171 auto idx = m_proxyModel->getRecommended();
172 if(idx.isValid())
173 {
174 preselectedAlready = true;
175 listView->selectionModel()->setCurrentIndex(idx,QItemSelectionModel::SelectCurrent | QItemSelectionModel::Rows);
176 listView->scrollTo(idx, QAbstractItemView::PositionAtCenter);
177 }
178}
179
180bool VersionSelectWidget::hasVersions() const
181{

Callers

nothing calls this directly

Calls 3

scrollToMethod · 0.80
getRecommendedMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected