MCPcopy Create free account
hub / github.com/ElyPrismLauncher/Launcher / setSelectedInstanceById

Method setSelectedInstanceById

launcher/ui/MainWindow.cpp:1228–1238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1226}
1227
1228void 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
1240void MainWindow::on_actionChangeInstGroup_triggered()
1241{

Callers

nothing calls this directly

Calls 4

getInstanceIndexByIdMethod · 0.80
instancesMethod · 0.80
mapFromSourceMethod · 0.80
isValidMethod · 0.45

Tested by

no test coverage detected