MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / selectRecommended

Method selectRecommended

launcher/ui/widgets/VersionSelectWidget.cpp:173–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

scrollToMethod · 0.80
getRecommendedMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected