| 156 | } |
| 157 | |
| 158 | void VersionSelectWidget::selectCurrent() |
| 159 | { |
| 160 | if(m_currentVersion.isEmpty()) |
| 161 | { |
| 162 | return; |
| 163 | } |
| 164 | auto idx = m_proxyModel->getVersion(m_currentVersion); |
| 165 | if(idx.isValid()) |
| 166 | { |
| 167 | preselectedAlready = true; |
| 168 | listView->selectionModel()->setCurrentIndex(idx,QItemSelectionModel::SelectCurrent | QItemSelectionModel::Rows); |
| 169 | listView->scrollTo(idx, QAbstractItemView::PositionAtCenter); |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | void VersionSelectWidget::selectRecommended() |
| 174 | { |
nothing calls this directly
no test coverage detected