| 201 | } |
| 202 | |
| 203 | void 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 | |
| 213 | bool VersionSelectWidget::hasVersions() const |
| 214 | { |
nothing calls this directly
no test coverage detected