| 1856 | } |
| 1857 | |
| 1858 | void MainWindow::setSelectedInstanceById(const QString &id) |
| 1859 | { |
| 1860 | if (id.isNull()) |
| 1861 | return; |
| 1862 | const QModelIndex index = APPLICATION->instances()->getInstanceIndexById(id); |
| 1863 | if (index.isValid()) |
| 1864 | { |
| 1865 | QModelIndex selectionIndex = proxymodel->mapFromSource(index); |
| 1866 | view->selectionModel()->setCurrentIndex(selectionIndex, QItemSelectionModel::ClearAndSelect); |
| 1867 | updateStatusCenter(); |
| 1868 | } |
| 1869 | } |
| 1870 | |
| 1871 | void MainWindow::on_actionChangeInstGroup_triggered() |
| 1872 | { |
nothing calls this directly
no test coverage detected