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