| 178 | } |
| 179 | |
| 180 | void VersionSelectWidget::selectCurrent() |
| 181 | { |
| 182 | if (m_currentVersion.isEmpty()) { |
| 183 | return; |
| 184 | } |
| 185 | auto idx = m_proxyModel->getVersion(m_currentVersion); |
| 186 | if (idx.isValid()) { |
| 187 | preselectedAlready = true; |
| 188 | listView->selectionModel()->setCurrentIndex(idx, QItemSelectionModel::SelectCurrent | QItemSelectionModel::Rows); |
| 189 | listView->scrollTo(idx, QAbstractItemView::PositionAtCenter); |
| 190 | } |
| 191 | } |
| 192 | |
| 193 | void VersionSelectWidget::selectSearch() |
| 194 | { |
no test coverage detected