| 1120 | } |
| 1121 | |
| 1122 | void MainWindow::setSelectedInstanceById(const QString& id) |
| 1123 | { |
| 1124 | if (id.isNull()) |
| 1125 | return; |
| 1126 | const QModelIndex index = APPLICATION->instances()->getInstanceIndexById(id); |
| 1127 | if (index.isValid()) { |
| 1128 | QModelIndex selectionIndex = proxymodel->mapFromSource(index); |
| 1129 | view->selectionModel()->setCurrentIndex(selectionIndex, QItemSelectionModel::ClearAndSelect); |
| 1130 | updateStatusCenter(); |
| 1131 | } |
| 1132 | } |
| 1133 | |
| 1134 | void MainWindow::on_actionChangeInstGroup_triggered() |
| 1135 | { |
nothing calls this directly
no test coverage detected