| 1226 | } |
| 1227 | |
| 1228 | void MainWindow::setSelectedInstanceById(const QString& id) |
| 1229 | { |
| 1230 | if (id.isNull()) |
| 1231 | return; |
| 1232 | const QModelIndex index = APPLICATION->instances()->getInstanceIndexById(id); |
| 1233 | if (index.isValid()) { |
| 1234 | QModelIndex selectionIndex = proxymodel->mapFromSource(index); |
| 1235 | view->selectionModel()->setCurrentIndex(selectionIndex, QItemSelectionModel::ClearAndSelect); |
| 1236 | updateStatusCenter(); |
| 1237 | } |
| 1238 | } |
| 1239 | |
| 1240 | void MainWindow::on_actionChangeInstGroup_triggered() |
| 1241 | { |
nothing calls this directly
no test coverage detected