| 1526 | } |
| 1527 | |
| 1528 | void MainWindow::setSelectedInstanceById(const QString &id) |
| 1529 | { |
| 1530 | if (id.isNull()) |
| 1531 | return; |
| 1532 | const QModelIndex index = APPLICATION->instances()->getInstanceIndexById(id); |
| 1533 | if (index.isValid()) |
| 1534 | { |
| 1535 | QModelIndex selectionIndex = proxymodel->mapFromSource(index); |
| 1536 | view->selectionModel()->setCurrentIndex(selectionIndex, QItemSelectionModel::ClearAndSelect); |
| 1537 | updateStatusCenter(); |
| 1538 | } |
| 1539 | } |
| 1540 | |
| 1541 | void MainWindow::on_actionChangeInstGroup_triggered() |
| 1542 | { |
nothing calls this directly
no test coverage detected